Batch Job Management

Scenario

This section describes how to manage CDM table/file migration jobs in batches. The following operations are involved:
  • Manage jobs by group.
  • Run jobs in batches.
  • Delete jobs in batches.
  • Export jobs in batches.
  • Import jobs in batches.
You can export and import jobs in batches in the following scenarios:
  • Job migration between CDM clusters: You can migrate jobs from a cluster of the earlier version to a new version.
  • Job backup: You can stop or delete CDM clusters to reduce costs. In this case, you can export the job scripts in batches and save them, and create a cluster and import the job scripts if necessary.
  • Batch job creation: You can manually create a job and export the job configuration file in JSON format. Copy the content in the JSON file to the same file or new files, and then import the file/files to CDM to create jobs in batches.

Procedure

  1. Log in to the DGC console, select a DGC instance, and click Access.

    On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.

  1. Click Data Integration of the corresponding workspace.

    The Data Integration page is displayed.

  1. Choose Cloud Data Migration. The Cluster Management page is displayed. Click Job Management in the Operation column of the cluster.
  2. Click Table/File Migration. The job list is displayed. You can perform the following batch operations:
    • Manage jobs by group.

      CDM allows users to add, modify, search for, and delete job groups. When a group is deleted, all jobs in the group are deleted.

      In the third step of creating a job, if jobs have been assigned to different groups, you can display, start, or export jobs by group.

    • Run jobs in batches.

      After selecting one or more jobs, click Run to start these jobs in batches.

    • Delete jobs in batches.

      After selecting one or more jobs, click Delete to delete these jobs in batches.

    • Export jobs in batches.

      Click Export. The page for batch export is displayed. See Figure 1.

      Figure 1 Batch export page
      • All jobs and links: If this option is selected, all jobs and links are exported at a time.
      • All jobs: If this option is selected, all jobs are exported at a time.
      • All links: If this option is selected, all links are exported at a time.
      • Jobs by name: If this option is selected, jobs to be exported need to be specified. Then, click OK to export the selected jobs.
      • All jobs by groups: If this option is selected, groups to be exported need to be specified. Then click OK to export the selected groups.

      Click Export All to export all jobs in JSON format. These files can be used as backups or imported to another cluster.

      You can export all jobs at a time or export jobs by job name or group.

      For security purposes, no link password is exported when CDM exports jobs. All passwords are replaced by Add password here.

    • Import jobs in batches.
      Click Import and select the import format (text file or JSON).
      • By JSON string: Job files to be imported must be in JSON format. If the job files to be imported are exported from CDM, edit the JSON files before importing them to CDM. Replace Add password here with the correct link passwords.
      • By text file: This mode can be used when the local JSON files cannot be uploaded properly. Paste the JSON strings of the jobs to the text box.