Updated on 2024-03-25 GMT+08:00

Creating a Package

DLI allows you to submit program packages in batches to the general-use queue for running.

If you need to update a package, you can use the same package or file to upload it to the same location (in the same group) on DLI to overwrite the original package or file.

Prerequisites

All software packages must be uploaded to OBS for storage in advance.

Procedure

  1. On the left of the management console, choose Data Management > Package Management.
  2. On the Package Management page, click Create in the upper right corner to create a package.
  3. In the displayed Create Package dialog box, set related parameters by referring to Table 1.
    Figure 1 Creating a package
    Table 1 Parameter description

    Parameter

    Description

    Package Type

    The following package types are supported:

    • JAR: JAR file
    • PyFile: User Python file
    • File: User file
    • ModelFile: User AI model file

    Package File Path

    Select the OBS path of the corresponding packages.

    NOTE:
    • The packages must be uploaded to OBS for storage in advance.
    • Only files can be selected.

    Group Policy

    You can select Use existing group, Use new group, or No grouping.

    Group Name

    • Use existing group: Select an existing group.
    • Use new group: Enter a custom group name.
    • No grouping: No need to select or enter a group name.
    NOTE:
    • If you select a group, the permission management refers to the permissions of the corresponding package group.
    • If no group is selected, the permission management refers to the permissions of the corresponding package.

    For details about how to manage permissions on package groups and packages, see Managing Permissions on Packages and Package Groups.

    Tag

    Tags used to identify cloud resources. A tag includes the tag key and tag value. If you want to use the same tag to identify multiple cloud resources, that is, to select the same tag from the drop-down list box for all services, you are advised to create predefined tags on the Tag Management Service (TMS).

    If your organization has configured tag policies for DLI, add tags to resources based on the policies. If a tag does not comply with the tag policies, resource creation may fail. Contact your organization administrator to learn more about tag policies.

    For details, see Tag Management Service User Guide.

    NOTE:
    • A maximum of 20 tags can be added.
    • Only one tag value can be added to a tag key.
    • The key name in each resource must be unique.
    • Tag key: Enter a tag key name in the text box.
      NOTE:

      A tag key can contain a maximum of 128 characters. Only letters, digits, spaces, and special characters (_.:=+-@) are allowed, but the value cannot start or end with a space or start with _sys_.

    • Tag value: Enter a tag value in the text box.
      NOTE:

      A tag value can contain a maximum of 255 characters. Only letters, digits, spaces, and special characters (_.:=+-@) are allowed. The value cannot start or end with a space.

  4. Click OK.

    After a package is created, you can view and select the package for use on the Package Management page.