In the previous segment, you learnt about operators in Airflow. Starting this segment, we will begin individual demonstrations on several important operators in Airflow.
We recommend that you follow along with the demonstrations in your own EC2 instance.
In the upcoming video, Ajay will introduce you to the Bash operator.
So, in the video, you learnt the theory related to the Bash operator in Airflow.
The BashOperator is used for running any Shell command or script with your DAG.
Some of the important parameters/arguments for the BashOperator are listed below:
- task_id: The ID for a task
- bash_command: The Shell command/script to be executed
- dag: The DAG to which the task belongs
In the next video, you will start with the actual demonstration of the Bash operator.
You can find the code and other resources used in the demonstration attached below:
The document provided below details the steps followed in the demonstration.
In the next segment, you will learn about the Python operator in Airflow.
Additional Reading
To know more about the BashOperator, you can visit the following link: BashOperator.
Report an error