title | description | ms.reviewer | ms.author | author | ms.topic | ms.custom | ms.date |
---|---|---|---|---|---|---|---|
Create an Apache Airflow Job project in Microsoft Fabric |
This tutorial helps you create an Apache Airflow Job in Microsoft Fabric. |
abnarain |
abnarain |
nabhishek |
quickstart |
09/16/2024 |
Note
Apache Airflow job is powered by Apache Airflow.
Apache Airflow is an open-source platform used to programmatically create, schedule, and monitor complex jobs. It allows you to define a set of tasks, called operators, that can be combined into directed acyclic graphs (DAGs) to represent data pipelines.
Apache Airflow Job provides a simple and efficient way to create and manage Apache Airflow environments, enabling you to run your orchestration jobs at scale with ease. In this quickstart, let's create a simple Apache Airflow job to familiarize yourself with the environment and functionalities of Apache Airflow Job.
- Enable Apache Airflow Job in your Tenant.
Note
Since Apache Airflow job is in preview state, you need to enable it through your tenant admin. If you already see Apache Airflow Job, your tenant admin may have already enabled it.
- Go to Admin Portal -> Tenant Settings -> Under Microsoft Fabric -> Expand 'Users can create and use Apache Airflow Job (preview)' section.
- Select Apply.
:::image type="content" source="media/apache-airflow-jobs/enable-apache-airflow-job-tenant.png" lightbox="media/apache-airflow-jobs/enable-apache-airflow-job-tenant.png" alt-text="Screenshot to enable Apache Airflow in tenant.":::
-
You can use an existing workspace or Create a new workspace.
-
Expand
+ New
dropdown -> Click on More Options -> UnderData Factory
section -> Select Apache Airflow Job (preview):::image type="content" source="media/apache-airflow-jobs/more-options.png" lightbox="media/apache-airflow-jobs/more-options.png" alt-text="Screenshot shows click on more options.":::
:::image type="content" source="media/apache-airflow-jobs/apache-airflow-project.png" alt-text="Screenshot to select Apache Airflow Job.":::
-
Give a suitable name to your project and click on the "Create" button.
-
Click on "New DAG file" card -> give the name to the file and Click on "Create" button.
:::image type="content" source="media/apache-airflow-jobs/name-directed-acyclic-graph-file.png" alt-text="Screenshot to name the DAG file.":::
-
A boilerplate DAG code is presented to you. You can edit the file as per your requirements.
:::image type="content" source="media/apache-airflow-jobs/boilerplate-directed-acyclic-graph.png" lightbox="media/apache-airflow-jobs/boilerplate-directed-acyclic-graph.png" alt-text="Screenshot presents boilerplate DAG file in Microsoft Fabric.":::
-
Click on "Save icon".
:::image type="content" source="media/apache-airflow-jobs/click-on-save-icon.png" lightbox="media/apache-airflow-jobs/click-on-save-icon.png" alt-text="Screenshot presents how to save DAG file in Microsoft Fabric.":::
-
Begin by clicking on the "Run DAG" button.
:::image type="content" source="media/apache-airflow-jobs/run-directed-acyclic-graph.png" alt-text="Screenshot to run the DAG from data workflows UI." lightbox="media/apache-airflow-jobs/run-directed-acyclic-graph.png":::
-
Once initiated, a notification will promptly appear indicating the DAG is running.
-
To monitor the progress of the DAG run, simply click on "View Details" within the notification center. This action will redirect you to the Apache Airflow UI, where you can conveniently track the status and details of the DAG run.
:::image type="content" source="media/apache-airflow-jobs/notification-to-run-directed-acyclic-graph.png" alt-text="Screenshot to navigate to Apache Airflow UI from notification center." lightbox="media/apache-airflow-jobs/notification-to-run-directed-acyclic-graph.png":::
The saved dag files are loaded in the Apache Airflow UI. You can monitor them by clicking on the "Monitor in Apache Airflow" button.
:::image type="content" source="media/apache-airflow-jobs/monitor-directed-acyclic-graph.png" alt-text="Screenshot to monitor the Airflow DAG.":::
:::image type="content" source="media/apache-airflow-jobs/directed-acyclic-graph-in-ui.png" alt-text="Screenshot presents the loaded Airflow DAG.":::