How is the Spark master elected in a Datastax Enterprise cluster?

旧时模样 提交于 2019-12-01 09:43:50

问题


How is the Spark master elected in a Datastax Enterprise cluster? I have looked at the configurations in /etc/dse/dse-env.sh and /etc/dse/spark/spark-defaults.conf and /etc/dse/spark/spark-env.sh. But I cannot find it any of those locations?

On our cluster the Spark master keeps on moving from one node to another after the restart of the services?


回答1:


In DSE 4.6, the Spark Master / Hadoop Job Tracker (always on the same node) are determined by a round robin algorithm and are stored in jobtracker table. This may change in future releases.

You can check and see what your current master is is by using:

dsetool listjt

This will output your current master and the reserve master if one has been configured.

To configure a reserve master use:

dsetool reservejt

Output might look something like this:

 $ dsetool listjt DC                             JobTracker   
 --                             --            
 Analytics-Analytics            192.168.101.122 
 ------ Reserve-JT = 192.168.101.121


来源:https://stackoverflow.com/questions/29558584/how-is-the-spark-master-elected-in-a-datastax-enterprise-cluster

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