How to connect to Zookeeper after setting Spark recovery mode?

0 votes
I am facing some problem with Spark application. I have enabled Spark recovery and set the mode to Zookeeper. But I don't know why Spark is not getting connected to Zookeeper for connection. How to make the connection?
Mar 25 in Apache Spark by Snehal
32 views

1 answer to this question.

+1 vote

You have set Zookeeper as the recovery mode but I think you forgot to set the URL for Zookeeper to connect to. When you set Zookeeper for recovery, you also need to mention the Zookeeper's URL that the Spark application should connect to when it needs to make the recovery. Use the below command and replace <URL> with your Zookeeper's URL:

val sc = new SparkContext(new SparkConf())

./bin/spark-submit <all your existing options> --spark.deploy.zookeeper.url=<URL>
answered Mar 25 by Hari

Related Questions In Apache Spark

0 votes
1 answer

How to set Spark recovery to Zookeeper?

There is a property of Spark which ...READ MORE

answered Mar 25 in Apache Spark by Hari
39 views
0 votes
1 answer

How to change scheduling mode in Spark?

You can change the scheduling mode as ...READ MORE

answered Mar 11 in Apache Spark by Raj
200 views
0 votes
1 answer
0 votes
1 answer

How to retain Spark jar and app jar after staging?

By default, Spark jar, app jar, and ...READ MORE

answered Mar 26 in Apache Spark by Ginni
32 views
0 votes
1 answer
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,690 points
3,010 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,690 points
336 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
14,865 views
0 votes
4 answers

How to change the spark Session configuration in Pyspark?

You can dynamically load properties. First create ...READ MORE

answered Dec 10, 2018 in Apache Spark by Vini
14,812 views
0 votes
6 answers