Airflow DAG migration problems

When you migrate Airflow DAGs from Cloudera Data Engineering to Cloudera Workflow Orchestrator by using Cloudera Migration Assistant, a failure usually comes from a scan that did not return the DAGs, from DAG IDs that conflict, or from the connection to Cloudera Workflow Orchestrator.

Symptoms

Find your symptom in this table:

Table 1. Airflow DAG migration problems
Symptom Likely cause Solution
No DAGs appear on the Discovery tab after a Cloudera Data Engineering scan. The scan did not complete, or a label filter hides the DAGs. Check the scan command log. Clear the label filter. See Scan completes but shows no results.
No DAGs are displayed for a virtual cluster. The agent could not authenticate to that virtual cluster during the scan. Search the Output Log of the scan command for SKIPPED, and correct the credentials of that virtual cluster. See Scan completes but shows no results.
A duplicate DAG ID warning is displayed on the Data or Workloads tab. Two virtual clusters have DAGs with the same dag_id. Rename one dag_id in the source, scan the source again, and create a new plan. See Resolving DAG name conflicts.
Execution step 1 fails. The resource files from the Cloudera Data Engineering scan are not on the disk of the agent. Run the Cloudera Data Engineering scan again to download the resource files, and then create a new execution.
Execution step 3 fails with an authentication error for Cloudera Workflow Orchestrator. The access key for the Anywhere Cloud Console expired or is wrong. Register the Cloudera Workflow Orchestrator instance again with a valid access key. See Cloudera Workflow Orchestrator registration problems.
The Cloudera Workflow Orchestrator cluster is not available when you create the plan. The Cloudera Workflow Orchestrator cluster is not registered, or the agent did not finish registering it. Check that the Cloudera Workflow Orchestrator cluster appears on the Clusters page. See Registering Cloudera Workflow Orchestrator.

DAG with Cloudera Data Engineering operator fails in Cloudera Workflow Orchestrator

Cloudera Workflow Orchestrator does not support the CDEJobRunOperator operator of the source DAGs. Cloudera Migration Assistant replaces it in the migrated DAGs with CdeTriggerRunOperator, with an awc_cde connection, or with CdeRunJobOperator, with a cloudera_data_engineering connection.

Solution

If a migrated DAG fails because it cannot find the operator, check that the DAG uses CdeTriggerRunOperator or CdeRunJobOperator, not CDEJobRunOperator. See Airflow operator mapping.