Creating a Package

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

Note

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.

    Table 1 Parameter description

    Parameter

    Description

    Package Type

    The following package types are supported:

    • JAR: JAR file

    • PyFile: User Python file

    • File: User 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).

    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.