Create a resource file

Updated at:

You can create a resource by uploading a local resource file. After the file is uploaded, a script operator of the corresponding type is generated. This topic describes how to create a resource.

Prerequisites

You have prepared a resource file package. The supported formats include .jar, .py, .pmml, and .sh.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Explore.

  3. In the top menu bar, click the 选择工作组 icon, select the target working group, and then click Operator Center.

  4. In the navigation pane on the left, choose Operator Configuration > Resource Files.

  5. In the upper-right corner of the Resource Files page, click Create Resource.

  6. Add a resource directory.

    1. In the directory bar, select a directory, click the add icon, enter a directory name in the input box, and then press Enter.

      A message is displayed, indicating that the directory is added. You can view the new directory in the directory bar.

      Note

      The system provides a preset Current Working Group Directory. Resources placed in this directory are available to all members of the working group.

    2. (Optional) In the directory bar, select a manually added directory, click the add2 icon, and add a child directory.

  7. In the Create Resource panel that appears on the right, configure the resource name, resource directory, and description, and then upload the resource file.

  8. Click OK.

    A message is displayed, indicating that the resource is added. You can view the new resource in the resource list.

Related operations

Operation

Description

Generate operator

In the resource list, find the target resource and click Generate Operator in the Actions column. For more information, see Create a script operator.

Edit resource

In the resource list, find the target resource and click Edit in the Actions column. In the Edit Resource panel that appears on the right, you can edit the resource name and description.

Delete resource

In the resource list, find the target resource and click Delete in the Actions column. In the dialog box that appears, click Confirm.

Important

If you delete a resource from which an operator has been generated, the operator is also deleted. The operator can no longer be used as a node on the model canvas and cannot be recovered. Any associated models are affected. Delete resources with caution.

Export resource

You can export resources from the current working group to your local machine. This lets you reuse them in other working groups and helps you quickly initialize data governance tasks.

On the Resource Management page, select the resources to export. In the lower-left corner of the page, choose Batch Operations > Batch Export.

Import resource

You can import exported resources into other working groups for reuse.

In the lower-left corner of the Resource Management page, choose Batch Operations > Batch Import. In the Batch Import panel, set the directory, upload the resource file, and then click Next.