Migrating Airflow DAGs from Cloudera Data Engineering to Cloudera Workflow Orchestrator
Move Airflow DAGs from Cloudera Data Engineering virtual clusters to the Git repository of Cloudera Workflow Orchestrator by using a workload plan. Code Migrator refactors the DAGs for the target Airflow version, and you review the changes before Cloudera Migration Assistant merges them.
- The Cloudera Data Engineering service and the Cloudera Workflow Orchestrator instance are registered. See Registering Cloudera Data Engineering services and Registering Cloudera Workflow Orchestrator.
- You have an AWC User Connection and a Git Connection for Cloudera Workflow Orchestrator. See Managing user connections.
- Code Migrator is available. It is displayed when Enable LLM is on in the engine configuration of the Cloudera Migration Assistant engine.
- The agents can reach the Cloudera Data Engineering service, the Cloudera Workflow Orchestrator instance, and the Git repository.
- You have the
cma-migratororcma-adminrole.
The execution runs these steps in order:
| Step | What it does |
|---|---|
| Export from CDE | Copies the mapped DAGs and their resource files to an intermediate Git repository, on a plan branch. |
| Migrate Code using AI | Starts Code Migrator jobs that refactor the DAGs for the target Airflow version. Each job writes its changes to its own branch, forked from the plan branch. |
| Review code changes | A manual step. You review the changes in the intermediate repository, and then mark the step as completed. |
| Finalize changes | Merges the branches of the Code Migrator jobs into the plan branch. |
| Push changes in Git | Creates a change with the migrated DAGs in the Git repository of Cloudera Workflow Orchestrator. |
| Create Spark migration plan | Finds the Spark jobs that the migrated DAGs run, and creates a CDE
Spark Migration plan for them, named [***AIRFLOW
PLAN***] - Spark jobs, for each target cluster. Each job is
mapped to the target virtual cluster of its Airflow connection. The step does not run
the new plan. |
| Clean up temporary files | Merges the plan branch into the base branch of the intermediate Git repository. |
The migrated DAGs fail until the Spark jobs that they run exist on the target. Run the Spark plan that the execution created next. See Migrating Cloudera Data Engineering Spark jobs.
Test the DAGs in Cloudera Workflow Orchestrator before you rely on them. Your source Cloudera Data Engineering service is not changed, and its DAGs keep running on their schedules. Cloudera Migration Assistant does not prevent a DAG from running on both platforms. See Phased migrations.
