Airflow operator mapping

Cloudera Workflow Orchestrator runs the operators of your Airflow DAGs as Apache Airflow does. For Cloudera Data Engineering jobs, Code Migrator rewrites the migrated DAGs to use the operator classes that Cloudera Workflow Orchestrator supports.

Operator classes

The Operators column on the Discovery tab lists the operator classes that each DAG uses. Check them against this table:

Table 1. Operator classes in Cloudera Workflow Orchestrator
Operator class in the source DAG In Cloudera Workflow Orchestrator
CDEJobRunOperator Not supported. Code Migrator rewrites it in the migrated DAGs to use one of the following operators, which run a Cloudera Data Engineering job:
  • CdeTriggerRunOperator, with an awc_cde connection
  • CdeRunJobOperator, with a cloudera_data_engineering connection
Apache Airflow operators, such as BashOperator and PythonOperator Work as in the target Airflow version. Code Migrator updates the imports and parameters that changed.

Code Migrator changes the operators with an LLM. It is not a fixed replacement, and it requires Enable LLM. Without it, Code Migrator is not deployed and the DAGs are not rewritten.

When you choose an operator, a connection, and a compute for a DAG, Cloudera Migration Assistant records them as the target settings of the DAG. Code Migrator then rewrites the following parts of the DAG to use them:

  • The operator class and its import
  • The connection and compute arguments
  • The other task arguments

Code Migrator comments out the arguments that the new operator does not support in the DAG, and lists them so that you can finish them by hand.

Code Migrator also changes the operators that the target Airflow version requires, for example, an operator that was removed or replaced. These changes have no target settings. No compute is set, so the operator uses the compute of its connection or of the Cloudera Data Engineering job. The DAG keeps its connection, or the operator uses its default connection.