airflow_failover启动scheduler

為{幸葍}努か 提交于 2019-12-04 08:47:09

参考:

https://github.com/teamclairvoyant/airflow-scheduler-failover-controller

 

1.stop failover
2.stop scheduler
3.clear failover meta
4.start failover

 

#启动master上的scheduler

. /data/venv/bin/activate

supervisorctl status

supervisorctl  stop airflow_failover

supervisorctl  stop airflow_scheduler

scheduler_failover_controller  clear_metadata

supervisorctl  start  airflow_failover

 

#failover命令

scheduler_failover_controller metadata #Get the Metadata from Metastore
scheduler_failover_controller clear_metadata #Clear the Metadata in Metastore
scheduler_failover_controller is_scheduler_running
#Checks if the Scheduler is running on the machines you have listed in 'scheduler_nodes_in_cluster' config
scheduler_failover_controller get_current_host #Get the Current Hostname

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!