title: How to integrate Zookeeper with Spark Driver program?
body: <p>Trying to integrate Spark Standalone cluster with Zookeeper And I have a question on integration from Spark Driver program perspective.  I have 3 Spark Masters and I understand one of them will be elected and others run in a standby mode. According to the documentation <a href="http://spark.apache.org/docs/latest/spark-standalone.html#standby-masters-with-zookeeper" rel="nofollow noreferrer">here</a> it says one can pass <code>spark://host1:port1,host2:port2</code> to spark context such that if one host goes down and other host becomes a leader and the driver would know who is the current leader. so my question really is instead of passing <code>host1_ip</code> and <code>host2_ip</code> can I simple ask Zookeeper to give me all the ip's of spark master? or simply pass zookeeper url.</p>