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 one click.

Prerequisites

The MaxCompute Resources tab is hidden by default. To show this tab in the left-side navigation pane of DataStudio, click Setup and then the Configuration Center tab. In the DataStudio Tabs section, click MaxCompute and then MaxCompute Resources under All Modules. For more information, see MaxCompute modules.

View resources

  1. Log on to the DataWorks console. In the left-side navigation pane, click Workspaces. On the Workspaces page, find the target workspace and click Data Analytics in the Actions column.
  2. Show MaxCompute in the left-side navigation pane 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 to the development environment.
    Note For workspaces in basic mode, only the production environment is available.
    2 Filter Click this icon to filter resources by type.
    Note Currently, JAR, Archive, File, and Python resources are supported.
    3 Sort 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 Resource Name, Resource Type, and Resource Size.
    • Resources listed on the MaxCompute Resources tab may be different from those on the Data Analytics tab.
      • To show a resource created on the Data Analytics tab in the development or production environment of the MaxCompute Resources tab, you must select Upload to MaxCompute when creating the resource and click Submit or Deploy. For more information, see Resource.
      • Resource files uploaded through other channels except DataWorks, such as the MaxCompute client and MaxCompute Studio, appear on the MaxCompute Resources tab but not the Data Analytics tab.
    • The usage scenarios of resources on the MaxCompute Resources tab differ from those of resources on the Data Analytics tab.
      Scenario Whether resources on the Data Analytics tab are applicable Whether resources on the MaxCompute Resources tab are applicable
      Run an ODPS SQL node Yes (The resources must be uploaded to MaxCompute.) Yes
      Run an ODPS MR node Yes (The resources must be uploaded to MaxCompute.) No
      Run a Shell node Yes No
      Run an ad hoc query Yes (The resources must be uploaded to MaxCompute.) Yes
      Create a function in a workflow Yes (The resources must be uploaded to MaxCompute.) No

Add resources to the Data Analytics tab

  1. Find the required resource and click Add to Data Analytics Tab.

    This operation allows you to quickly synchronize resource files on the MaxCompute Resources tab to a specified workflow on the Data Analytics tab.

  2. In the Create Resource dialog box, configure Resource Name and Location, click Upload, and then select the file to upload.
    You can perform the following operations during the upload:
    • Rename the resource.
    • Select a target 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.
    Note
    • After a resource is created, you need to 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 Resource.
    • After you commit and deploy a resource, it is also uploaded to the development and production environments of MaxCompute. The resource is also updated on the MaxCompute Resources tab.
    • A resource name 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 workflow different from the workflow you specify in Location, the resource is overridden and created in the specified workflow.

View the resource change history

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