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
24 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
46 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
62 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
44 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
• 25,440 points
95 views
0 votes
1 answer

Is there any way to check the Spark version?

There are 2 ways to check the ...READ MORE

answered Apr 19, 2018 in Apache Spark by nitinrawat895
• 10,840 points
1,802 views
+1 vote
1 answer
+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
• 10,840 points
3,854 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,840 points
526 views
+1 vote
11 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
20,366 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
50 views