All Products
Search
Document Center

MaxCompute:GET RESOURCE

Last Updated:Mar 25, 2026

Downloads a resource from a MaxCompute project to your local machine. Supported resource types: FILE, JAR, ARCHIVE, and PY. The TABLE type is not supported.

Prerequisites

Before you begin, ensure that you have:

Syntax

GET RESOURCE <resource_name> <path>;

Parameters

ParameterRequiredDescription
resource_nameYesThe name of the resource to download.
pathYesThe local path where the downloaded resource is saved.

Examples

Download a JAR resource named getaddr.jar to the D:\ directory on a Windows machine:

GET RESOURCE getaddr.jar D:\;

Related statements