I want to config Apache spark master to connect with Zookeeper
I have installed both of them and run Zookeeper.
In spark-env.sh, I add 2 lines:
-Dspark.deploy.recoveryMode=ZOOKEEPER
-Dspark.deploy.zookeeper.url=localhost:2181
But when I start Apache spark with ./sbin/start-all.sh
It shows errors
/home/deploy/spark-1.0.0/sbin/../conf/spark-env.sh: line 46: -Dspark.deploy.recoveryMode=ZOOKEEPER: command not found
/home/deploy/spark-1.0.0/sbin/../conf/spark-env.sh: line 47: -Dspark.deploy.zookeeper.url=localhost:2181: command not found
I want to know how to add Zookeeper settings on spark-env.sh