Control-M for Apache Airflow
Apache Airflow enables you to create, schedule, and monitor complex data processing and analytics pipelines. It provides an environment to define, manage, and execute workflows as Directed Acyclic Graphs (DAGs) to control task dependencies and execution order.
Control-M for Apache Airflow enables you to do the following:
-
Manage Apache Airflow credentials in a secure connection profile.
-
Connect to any Apache Airflow endpoint.
-
Introduce all Control-M capabilities to Control-M for Apache Airflow, including advanced scheduling criteria, complex dependencies, resource pools, lock resources, and variables.
-
Integrate Apache Airflow jobs with other Control-M jobs into a single scheduling environment.
-
Monitor the status, results, and output of Apache Airflow jobs.
-
Attach an SLA job to the Apache Airflow jobs.
Control-M for Apache Airflow Compatibility
The following table lists the prerequisites that are required to use the Apache Airflow plug-in, each with its minimum required version.
|
Component |
Version |
|---|---|
|
Control-M/EM |
9.0.22.000 |
|
Control-M/Agent |
9.0.22.000 |
|
Control-M Application Integrator |
9.0.22.000 |
|
Control-M Automation API |
9.0.22.000 |
|
Minimum Airflow Version |
2.5.0 |
Control-M for Apache Airflow is supported on Control-M Web and Control-M Automation API, but not on the Control-M client.
To download the installation files for each prerequisite, see Obtaining Control-M Installation Files.
Setting up Control-M for Apache Airflow
This procedure describes how to deploy the Apache Airflow plug-in, create a connection profile, and define an Apache Airflow job in
Integration plug-ins released by BMC require an Application Integrator installation. However, these plug-ins are not editable and you cannot import them into Application Integrator. To deploy these integrations to your Control-M environment, import them directly into Control-M with Control-M Automation API.
Before You Begin
- Verify that Java is installed, as described in Control-M External Java Installation.
-
Verify that Automation API is installed, as described in Automation API Installation.
Begin
-
Create a temporary directory to save the downloaded files.
-
Download the Apache Airflow plug-in from the Control-M for Apache Airflow download page in the EPD site.
-
Do the following to install the Apache Airflow plug-in with the Control-M Automation API provision service:
-
Log in as an administrator to the Control-M/EM server host and save the downloaded ZIP file to the following location:
-
Linux: $HOME/ctm_em/AUTO_DEPLOY
-
Windows: <EM_HOME>\AUTO_DEPLOY
-
-
Log in to the account where Control-M/Agent is installed and run the following provision image command:
-
Linux: ctm provision image Apache_Airflow_plugin.Linux
-
Windows: ctm provision image Apache_Airflow_plugin.Windows
-
-
-
Create an Apache Airflow connection profile in Control-M Web or Automation API, as follows:
-
Define an Apache Airflow job in Control-M Web or Automation API, as follows:
-
Web: Create a Job with Apache Airflow Job parameters
-
Automation API: Job:Apache Airflow
-
To remove this plug-in from an Agent, see Removing a Plug-in from the Agent. The plug-in ID is AAF112024.
Change Log
The following table provides details about changes that were introduced in new versions of this plug-in:
|
Plug-in Version |
Details |
|---|---|
|
1.0.06 |
Added Rerun DAG ID parameter to job definition. |
|
1.0.05 |
|
|
1.0.04 |
Added Get Task Output to job definition. |
|
1.0.03 |
|
|
1.0.02 |
|
|
1.0.01 |
Rerun DAG action added |
|
1.0.00 |
Initial version |
