您的位置:首页 > 其它

spark standalone ha spark submit

2016-09-19 15:45 405 查看
when you build a spark standalone ha cluster, when you submit your app, you should send it to the leader master,

not the standby master, how to decided the status of the two masters?

a simple way, not judge the status which master is the active, you can just add

spark.master spark://master1:port,master2:port

in the $SPARK_HOME/conf/spark-defaults.conf

or else,

you can curl the web-ui for your spark master.

like curl sparkmaster:web-ui-port |grep STANDBY?
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: