In the MaxCompute Resources panel, you can view the resources in your MaxCompute compute engine and the resource change history. You can also add resource files to workflows in the Scheduled Workflow panel.

Limits

You can use only the MaxCompute client odpscmd to upload a resource file of 200 MB or less in size to a workflow in DataStudio. This way, you can manage and use the resource file in DataStudio in a visualized manner.

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 in which the workspace that you want to manage resides. Find the workspace and click DataStudio in the Actions column.
  2. In the left-side navigation pane of the DataStudio page, choose MaxCompute > MaxCompute Resources.
    MaxCompute Resources
    No.IconDescription
    1SwitchBy default, the MaxCompute Resources panel displays only resources in the production environment. To view the resources that are committed but not deployed, click the Switch between environments icon to switch the environment. View resources
    Note For workspaces in basic mode, only the production environment is supported.
    2FilterClick this icon to filter resources by type.
    Note JAR, Archive, File, and Python resources are supported.
    3SortClick this icon to switch the order in which entries are sorted. By default, entries are sorted in descending order of update time.
  3. Click a resource to view its detailed information, such as the name, type, and size of the resource.
    • Resources that are displayed in the MaxCompute Resources panel may be different from the resources that are displayed in the Scheduled Workflow panel.
      • When you create a resource in the Scheduled Workflow panel, you must perform the following steps to display the resource in the development or production environment of the MaxCompute Resources panel: In the Create Resource dialog box, select Upload to MaxCompute. Then, commit or deploy the resource.
      • Resource files that are uploaded by using tools other than DataWorks, such as the MaxCompute client and MaxCompute Studio, are not displayed in the Scheduled Workflow panel. However, these resource files are displayed in the MaxCompute Resources panel.
    • The following table describes the scenarios where the resources in the MaxCompute Resources and Scheduled Workflow panels can be used.
      ScenarioResources displayed in the Scheduled Workflow panelMaxCompute Resources
      Run an ODPS SQL nodeSupported. The resources must be uploaded to MaxCompute.Supported.
      Run an ODPS MR nodeSupported. The resources must be uploaded to MaxCompute.Not supported.
      Run an EMR Shell nodeSupported.Not supported.
      Run an ad hoc querySupported. The resources must be uploaded to MaxCompute.Supported.
      Create a function in a workflowSupported. The resources must be uploaded to MaxCompute.Not supported.

Add a resource to the Scheduled Workflow panel

  1. Find the desired resource and click Add to Data Analytics.
    Add to Data Analytics

    This operation allows you to synchronize resource files in the MaxCompute Resources panel to a workflow in the Scheduled Workflow panel.

  2. In the Create Resource dialog box, configure the Name and File parameters, click Upload, and then select the resource file that you want 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.
    • Reupload the resource file.
  3. After the configuration is complete, click Create. Then, the resource is created.
    Note
    • After you create a resource, you must manually save, commit, and deploy the resource. The operations are the same as the operations that you must perform when you create a resource in a workflow. For more information, see Create and use MaxCompute resources.
    • When you commit and deploy a resource, the resource is uploaded to the development and production environments of MaxCompute. The resource is also displayed in the MaxCompute Resources panel.
    • A resource is unique in a MaxCompute project. If a resource that has the same name already exists in the workspace, the newly created resource overrides the existing resource. If the existing resource resides in a different workflow, the resource is overridden in the new workflow.

View the change history of a resource

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