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:
The MaxCompute client (odpscmd) installed. For more information, see MaxCompute client (odpscmd).
Syntax
GET RESOURCE <resource_name> <path>;Parameters
| Parameter | Required | Description |
|---|---|---|
resource_name | Yes | The name of the resource to download. |
path | Yes | The 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
ADD ARCHIVE: Adds an archive file as a resource.
ADD FILE: Adds a file as a resource.
ADD JAR: Adds a JAR file as a resource.
ADD PY: Adds Python code as a resource.
ADD TABLE: Adds a table as a resource.
DESC RESOURCE: Views resource details.
LIST RESOURCES: Views the information about resources.
ALIAS: Creates an alias for a resource.
DROP RESOURCE: Deletes a resource.