Integrating Cloudera Workflow Orchestrator with Spark on the Cloudera Data Engineering service
Cloudera Workflow Orchestrator can run and monitor Cloudera Data Engineering jobs from Airflow DAGs. To enable this, your DAG requires an Airflow Connection to the Cloudera Data Engineering engine. This connection securely stores an Anywhere Cloud access key (a client ID and client secret), which the operator uses to authenticate to the Cloudera Data Engineering Jobs API.
The Anywhere Cloud Connections wizard in the Airflow UI streamlines this process. It creates an Anywhere Cloud access key on your behalf and automatically stores it in a new Airflow connection pointing to your selected Cloudera Data Engineering engine.
Security and best practices
- One connection per engine (per user): To minimize your
access key count, create only one Airflow Connection per Cloudera Data Engineering
engine per user and reuse it across all your DAGs. You do not need separate connections for
different compute clusters.
For example, if you need to run Cloudera Data Engineering jobs as user A and user B, create two separate connections, one for user A and one for user B.
- Global access: All Airflow Connections in a Cloudera Workflow Orchestrator instance are global. Any DAG deployed to the instance can use your connection and by extension, execute Cloudera Data Engineering jobs with your permissions. Make sure that you trust all users who have DAG-authoring privileges on the instance.
- Database security: Access key secrets are stored in the Airflow metadata database and encrypted using Airflow's Fernet key. They are never logged by the wizard.
- Delegation scope: The Knox delegation allows the Airflow API server to create access keys for any listed user, whether they are signed in or not. To minimize risk, administrators should frequently audit the Users Workflow Orchestrator May Act For list and remove inactive users.
