Integrating Cloudera Workflow Orchestrator with Spark on the Cloudera Data Engineering service

Integrate Cloudera Workflow Orchestrator operators and hooks with Spark on the Cloudera Data Engineering service using CdeTriggerRunOperator.

The Anywhere Cloud connections wizard generates an access key exclusively for the signed-in user. You cannot use the wizard to create connections for other users. Any jobs running through this connection will authenticate to Cloudera Data Engineering using your identity and Cloudera Data Engineering permissions.
Make sure that you have completed all prerequisites.
  1. Sign in to Cloudera Workflow Orchestrator from Anywhere Cloud Console.
  2. Go to Admin > Anywhere Cloud Connections. The Anywhere Cloud Connections page displays.

    The Anywhere Cloud Connections page lists only connections to Anywhere Cloud data services. To see all Airflow connections, click View all connections.

  3. Click the Add Connection button at the top right corner.
  4. Add the following configurations:
    • Data service: Select Cloudera Data Engineering.
    • CDE engine: Select your target Cloudera Data Engineering engine.
    • Connection ID: Accept the suggested connection ID or create a unique connection identifier. For example, awc_cde_default. It can contain up to 200 characters including letters, digits, underscores, dots, and hyphens.
  5. Click Create connection. The process can take up to a minute; keep the dialog open until it completes.
  6. Once created, click Copy to copy the provided code example into your DAG, then click Done.
The Add Connection wizard automatically creates the following assets:
Created item Location Details
Anywhere Cloud access key Anywhere Cloud console (Your access keys)
  • Name: cwo-cde-[***CONNECTION_ID***]
  • Description: An auto-created secret for the Cloudera Workflow Orchestrator instance.
Airflow connection Airflow UI (Admin > Anywhere Cloud Connections and Admin > Connections)
  • Type: Cloudera Data Engineering Job Management API in the Cloudera Anywhere Cloud.

    For example, awc_cde

  • Description: An auto-created connection for the user.

On the Airflow Connection, the Access Key ID acts as the login, and the Access Key Secret acts as the password. The Anywhere Cloud Console URL extra holds the URL used for token exchange.