In the MaxCompute Resources pane, 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 pane.

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 where the workspace resides. On the Workspaces page, find the workspace in which you want to create tables, and click DataStudio in the Actions column.
  2. In the left-side navigation pane of the DataStudio page, choose MaxCompute > MaxCompute Resources.
    1
    No.IconDescription
    1SwitchBy default, the MaxCompute Resources pane displays only resources in the production environment. To view the resources that are committed but not deployed, click the Switch icon to switch the environment. View resources
    Note For workspaces in basic mode, only the production environment is supported.
    21Click 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 pane may be different from the resources that are displayed in the Scheduled Workflow pane.
      • When you create a resource in the Scheduled Workflow pane, you must perform the following steps to display the resource in the development or production environment of the MaxCompute Resources pane: 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 pane. However, these resource files are displayed in the MaxCompute Resources pane.
    • The following table describes the scenarios where the resources in the MaxCompute Resources and Scheduled Workflow panes can be used.
      ScenarioResources displayed in the Scheduled Workflow paneMaxCompute 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 pane

  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 pane to a workflow in the Scheduled Workflow pane.

  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 pane.
    • 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

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