Client connection getting rejected due to SASL authentication

0 votes
I am facing some issues with authentication in spark application. There are two points. One is the port where I have enabled SASL authentication and one more is the client that has authentication enabled (but not SASL). Whenever the client is trying to connect to this port, the connection request is getting rejected. I have recently started using encryption so I don't know what is wrong.
Mar 14, 2019 in Apache Spark by Manu
1,253 views

1 answer to this question.

0 votes

Seems like you have set the configuration such that the port will accept connections only if SASL encryption is used. To solve this error, you can run the command in the Spark shell:

val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.network.sasl.serverAlwaysEncrypt=false
answered Mar 14, 2019 by Raj

Related Questions In Apache Spark

0 votes
1 answer

How to enable SASL authentication after Spark authentication?

You can do this by setting the ...READ MORE

answered Mar 13, 2019 in Apache Spark by Venu
924 views
0 votes
1 answer

How to set client authentication for SSL?

By default, this feature is disabled. To ...READ MORE

answered Mar 15, 2019 in Apache Spark by Karan
821 views
0 votes
1 answer

How to enable SASL encryption?

You can use dynamic configuration setting to ...READ MORE

answered Mar 14, 2019 in Apache Spark by Raj
626 views
0 votes
1 answer

How to run spark in Standalone client mode?

Hi, These are the steps to run spark in ...READ MORE

answered Jul 5, 2019 in Apache Spark by Gitika
• 65,910 points
1,530 views
+1 vote
2 answers
+1 vote
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
• 11,380 points
10,719 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
• 11,380 points
2,275 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
106,133 views
0 votes
1 answer

How to add modify access for Web UI user?

For a user to have modification access ...READ MORE

answered Mar 14, 2019 in Apache Spark by Raj
451 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP