ambari-airflow-mpack icon indicating copy to clipboard operation
ambari-airflow-mpack copied to clipboard

Airflow service auto stopping

Open satheanirudha18 opened this issue 6 years ago • 7 comments

Hi! I went through the steps written in the repo. I have given all the necessary configurations in the xml(s). The Airflow is successfully getting installed but it is auto stopping. Just after couple of minutes, it automatically stops. The worker node stops and whatever the port (eg: 8088 or 8085) I'm giving, it is saying, "Connection refused", and no other service is running on that port. Can you please help me in starting the Airflow service?

satheanirudha18 avatar Jul 31 '18 07:07 satheanirudha18

Hi @satheanirudha18. Worker nodes are used only when you configured airflow with CeleryExecutor, otherwise you don't need workers and they will not work unless you configure celery. Nice article how to do it: https://medium.com/wbaa/airflow-ha-environment-c60ddca825a9

miho120 avatar Aug 08 '18 08:08 miho120

Hi @miho120 We have followed all the above steps and Ambari worker are not used, still Airflow service is auto stopping

aman1505 avatar Aug 13 '18 14:08 aman1505

Hi @miho120 Any updates on the above issue?

aman1505 avatar Aug 17 '18 05:08 aman1505

Hi @aman1505, Did you configure celery executor?

miho120 avatar Aug 21 '18 07:08 miho120

Hi @aman1505, We tried modifying a file located at

ambari-airflow-mpack/airflow-service-mpack/common-services/AIRFLOW/1.9.0/package/scripts/airflow_setup.py

, in which, there's a line which it exports (export AIRFLOW_HOME={airflow_home} && /usr/bin/airflow $1 --pid {airflow_home}/airflow-sys-$1.pid). In this line, we changed /usr/bin/airflow to /usr/local/bin/airflow. Then the airflow started and it did not auto stop further. Let me know if it helps.

asath04 avatar Aug 21 '18 08:08 asath04

@miho120 No , I have not configured celery executor

aman1505 avatar Aug 27 '18 09:08 aman1505

Should be fixed now with commit d54b960.

miho120 avatar Sep 24 '18 09:09 miho120