How to authenticate Spark internal connections using a secret key?

0 votes
I have enabled Spark authentication for internal connections in Spark. Now instead of normal authentication, I want the authentication to be done using a secret key. How can I do this?
Mar 13 in Apache Spark by Zaheer
80 views

1 answer to this question.

0 votes

You need to set the secret key that you want to use for authentication. After you have enabled authentication, set the secret key as follows:

val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.authenticate.secret= <secret key>
answered Mar 13 by Venu

Related Questions In Apache Spark

0 votes
1 answer
0 votes
1 answer

How to restrict a group to only view in Spark?

You can do it dynamically be setting ...READ MORE

answered Mar 15 in Apache Spark by Raj
53 views
0 votes
1 answer

How to access private key password with Spark?

Spark allows you to retrieve the key ...READ MORE

answered Mar 15 in Apache Spark by Karan
87 views
0 votes
1 answer

How to get SQL configuration in Spark using Python?

You can get the configuration details through ...READ MORE

answered Mar 18 in Apache Spark by John
77 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,730 points
3,356 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,730 points
402 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
16,627 views
0 votes
1 answer

How to get ID of a map task in Spark?

you can access task information using TaskContext: import org.apache.spark.TaskContext sc.parallelize(Seq[Int](), ...READ MORE

answered Nov 20, 2018 in Apache Spark by Frankie
• 9,810 points
472 views
0 votes
1 answer

Authenticate internal connections in Spark

To make Spark authenticate internal connections, you ...READ MORE

answered Mar 13 in Apache Spark by Venu
18 views