On the MaxCompute Resources tab, you can view resources in the MaxCompute compute engine and the resource change history. You can also add resource files to workflows on the Data Analytics tab with a few clicks.

Prerequisites

The MaxCompute Resources module is hidden by default. To show this module in the left-side navigation pane of the DataStudio page, select the module on the Configuration Center tab of the Setup page. For more information, see MaxCompute modules.

View resources

  1. Go to the DataStudio page.
    1. Log on to the DataWorks console.
    2. In the left-side navigation pane, click Workspaces.
    3. In the top navigation bar, select the region where your workspace resides, find the workspace, and then click Data Analytics in the Actions column.
  2. Show MaxCompute in the left-side navigation submenu and click MaxCompute Resources.
    No. Icon Description
    1 Switch The MaxCompute Resources tab displays resources in the production environment by default. To view committed but undeployed resources, click the Switch between environments icon to switch the environment.
    Note For workspaces in basic mode, only the production environment is available.
    2 Filter Click this icon to filter resources by type.
    Note JAR, archive, file, and Python resources are supported.
    3 Sorting Click this icon to switch the order of entries. Entries are sorted in descending order of update time by default.
  3. Click a resource to view its detailed information, including the name, type, and size of the resource.
    • Resources that are displayed on the MaxCompute Resources tab may be different from those on the Data Analytics tab.
      • When you create a resource on the Data Analytics tab, you must perform the following operations to show the resource in the development or production environment of the MaxCompute Resources tab: Select Upload to MaxCompute. Then, commit or deploy the resource.
      • Resource files that are uploaded by using tools except DataWorks, such as the MaxCompute client and MaxCompute Studio, are not displayed on the Data Analytics tab. However, these resources are displayed on the MaxCompute Resources tab.
    • The use of resources on the MaxCompute Resources tab is different from that of resources on the Data Analytics tab.
      Scenario Data Analytics MaxCompute Resources
      Run an ODPS SQL node Supported. The resources must be uploaded to MaxCompute. Supported
      Run an ODPS MR node Supported. The resources must be uploaded to MaxCompute. Not supported
      Run a Shell node Supported Not supported
      Run an ad hoc query Supported. The resources must be uploaded to MaxCompute. Supported
      Create a function in a workflow Supported. The resources must be uploaded to MaxCompute. Not supported

Add a resource to the Data Analytics tab

  1. Find the required resource and click Add to Data Analytics.
    This operation allows you to synchronize resource files on the MaxCompute Resources tab to a specified workflow on the Data Analytics tab.
  2. In the Create Resource dialog box, set the Resource Name and Location parameters, click Upload, and then select the file to upload.
    You can perform the following operations during the upload:
    • Rename the resource.
    • Select a destination folder to modify the workflow in which the resource resides.
    You cannot perform the following operations during the upload:
    • Change the resource type.
    • Select or clear Upload to MaxCompute.
    • Re-upload the resource file.
  3. After the configuration is completed, click OK. Then, the resource is created.
    Note
    • After a resource is created, you must manually save, commit, and deploy the resource. The operations are the same as those performed when you create a resource in a workflow. For more information, see Create, reference, and download MaxCompute resources.
    • When you commit and deploy a resource, the resource is also uploaded to the development and production environments of MaxCompute. In addition, the resource is displayed on the MaxCompute Resources tab.
    • A resource is unique in a MaxCompute project. If a resource with the same name already exists in the workspace, the newly created resource overrides the existing one. If the existing resource resides in a different workflow, the resource is overridden in the new workflow.

View the resource change history

Click the required resource and then click Change History to view the creation and change records of the resource file.