airflow 重启语句

重启webserver和scheduler

su airflow
 ps -ef|egrep 'scheduler|airflow-webserver'|grep -v grep|awk '{print $2}'|xargs kill -9
 rm -rf /home/airflow/airflow/airflow-scheduler.pid 
 airflow webserver -p 8080 -D
  airflow scheduler -D
tail -f /home/airflow/airflow/airflow-scheduler.err 

重启worker
su airflow
ps -ef|egrep 'serve_logs|celeryd'|grep -v grep
 rm -rf /home/airflow/airflow/airflow-worker.pid
 airflow worker -D
tail -f /home/airflow/airflow/airflow-worker.err   什么也不打印就是没有问题

你可能感兴趣的:(经验)