Create a resource file
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
Log on to the Data Resource Platform console.
In the upper-left corner of the page, click the
icon and select Explore.In the top menu bar, click the
icon, select the target working group, and then click Operator Center.In the navigation pane on the left, choose Operator Configuration > Resource Files.
In the upper-right corner of the Resource Files page, click Create Resource.
Add a resource directory.
In the directory bar, select a directory, click the
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.
NoteThe system provides a preset Current Working Group Directory. Resources placed in this directory are available to all members of the working group.
(Optional) In the directory bar, select a manually added directory, click the
icon, and add a child directory.
In the Create Resource panel that appears on the right, configure the resource name, resource directory, and description, and then upload the resource file.
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. |