Updated on 2022-02-22 GMT+08:00

Exporting and Importing a Job

Exporting Jobs

Method 1: Export a job on the job development page.

  1. Go to the development page of a job, click , and select the type of the job to be exported.

    • Export jobs only: Export the connection relationships and property configurations of nodes, excluding sensitive information such as passwords. After the export is completed, the user obtains a .zip file.
    • Export jobs and their dependency scripts: Export the node connection relationships, node property configurations, job scheduling configurations, parameter configurations, and dependency scripts, excluding sensitive information such as passwords. After the export is completed, the user obtains a .zip file.
    Figure 1 Exporting a job (method 1)

  2. Click OK to export the required job file.

Method 2: Export one or more jobs from the job directory.

  1. Click in the job directory and select Show Check Box.

    Figure 2 Show Check Box

  2. Select the job to be exported and choose > Export Job to export the job and its dependencies.

    Figure 3 Selecting and exporting a job

Importing a Job

Export one or more jobs from the job directory.

  1. Click > Import Job in the job directory, select the job file that has been uploaded to OBS, and rename the policy.

    Figure 4 Importing a job

  2. Click Next to import the job as instructed.

    During the import, if the data connection, DIS stream, DLI queue, or GES graph associated with the job does not exist in DLF, the system prompts you to select one again.

Example

Context:

  • A DWS data connection doctest is created in DLF.
  • A real-time job doc1 is created in the job directory. Node DWS SQL is added to the job. The Data Connection of the node is set to doctest. SQL Script and Database are both configured.
  1. Log in to the DLF console.
  2. In the navigation tree of the DLF console, choose Development > Develop Script.
  3. Search for doc1 in the job search box, export the job to the local host, and then upload it to the OBS folder.
  4. Delete the doctest data connection associated with the job in DLF.
  5. Click > Import Job in the job directory, select the job file that has been uploaded to OBS, and set the duplicate name policy.
  6. Click Next and select another data connection as prompted.

    Figure 5 Importing a job

  7. Click Next and then Close.