I just started using apache airflow. I am trying to run test.sh file from airflow, however it is not work.
Following is my code, file name is test.py
Try without the "sh" just set the command to "home/ubuntu/test/inst/scripts/test.sh"
use just the script path, without "sh": create_command = "/home/ubuntu/test/inst/scripts/test.sh"
also make sure that "airflow" user has permissions to execute "test.sh" script.
Add a space after .sh it should work this is mentioned in the confluence page of airflow
t2 = BashOperator(
task_id='sleep',
bash_command="/home/batcher/test.sh", // This fails with `Jinja template not found` error
#bash_command="/home/batcher/test.sh ", // This works (has a space after)
dag=dag)