Created on 05-26-202107:49 AM - edited on 05-26-202109:13 PM by subratadas
Introduction
In Cloudera Data Engineering (CDE), you may have a need to move the jobs from one virtual cluster to another. This can be for testing purposes or to move the jobs into the latest CDE versions. This can be easily achieved by the backup & restore process and is well documented here. The purpose of this article is to provide additional tools to simplify this and demonstrate the process. The example shown here demonstrates this process within the same CDE service, but you can use the same approach to move across CDE services.
Steps
Ensure that CDP CLI is set up on the system with the required access to list and describe CDE services & virtual clusters. Also, have your workload password handy as this is required for the export and import process.
Download export & import scripts using the following commands.
In this example, we will move the jobs from the virtual cluster sourceVC to targetVC. The sourceVC contains three jobs and the targetVC does not contain any job.
Run the following command to export the job from sourceVC. When prompted, enter the workload password. Make a note of the backup zip file from the output.
Here is a view of the targetVC after the successful import. You can use more advanced options listed here to export jobs based on job names, include resources, etc. Modify the script as per your requirement.