We are trying to setup Spark HA setup with ZK. We have 2 machines for Master for Spark process and another 3 for Spark Slaves The configuration In Master Machine for spark HA done as below in spark-env.sh :
# - SPARK_DAEMON_JAVA_OPTS, to set config properties for all daemons (e.g. "-Dx=y")
export SPARK_DAEMON_JAVA_OPTS="-Dspark.deploy.recoveryMode=ZOOKEEPER -Dspark.deploy.zookeeper.url=DEV-SMP-Manager01:2181DEV-SMP-Worker01:2181,DEV-SMP-Worker05:2181"
where DEV-SMP-Manager01:2181DEV-SMP-Worker01:2181,DEV-SMP-Worker05:2181 are ZK Quorum. and they are up and running . Added the curator jars in spark config file mentioned below. When we start the master(s) using command sbin/start-master.sh ,
both of them are coming as "STANDBY" , no error in spark logs . here we are stuck , any idea what goes wrong my spark-env is as below :-
export SPARK_DIST_CLASSPATH=$(/home/hduser/smp/hadoop-2.5.1/bin/hadoop classpath) export SPARK_DIST_CLASSPATH=$SPARK_DIST_CLASSPATH:/home/hduser/smp/spark-1.6.1-bin-without-hadoop/curator-client-2.0.0-incubating.jar:/home/hduser/smp/spark-1.6.1-bin-without-hadoop/curator-framework-2.2.0-incubating.jar
export SPARK_DAEMON_JAVA_OPTS="-Dspark.deploy.recoveryMode=ZOOKEEPER -Dspark.deploy.zookeeper.url=DEV-SMP-Manager01:2181DEV-SMP-Worker01:2181,DEV-SMP-Worker05:2181" when i see machine:8080 for both web UI , we see the status = STANDBY for the master and also no workers are displayed in any of them . Though all the workers are up and running . Any clue will be helpful. Ideally one master should be live displaying all the workers but here both master are in stand by and no workers are displayed for any master ?
Version used :- Spark - spark-1.6.1 ZK - 3.4.6