How to check if user has permission in Web UI?

0 votes
I have created a Spark application and also a Web UI. Now I don't want any user to modify it. I want to create a system where the user permission is checked and he is allowed to modify only if he has permission. How to enable this feature?
Mar 14, 2019 in Apache Spark by Suman
73 views

1 answer to this question.

0 votes

You can implement this as follows:

First, add an authentication filter to authenticate a user. Refer this: https://spark.apache.org/docs/latest/configuration.html#spark-ui

If you don't install the filter then this won't work. 

Next, enable Access Control Lists like this:

val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.acls.enable=true
answered Mar 14, 2019 by Raj

Related Questions In Apache Spark

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
71 views
0 votes
1 answer

How to check if a particular keyword exists in Apache Spark?

Hey, You can try this code to get ...READ MORE

answered Jul 22, 2019 in Apache Spark by Gitika
• 33,210 points
421 views
0 votes
1 answer

Spark to check if a particular string exists in a file

You can use this: lines = sc.textFile(“hdfs://path/to/file/filename.txt”); def isFound(line): if ...READ MORE

answered Mar 15, 2019 in Apache Spark by Raj
1,057 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
• 10,920 points
5,462 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,920 points
806 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
33,895 views
0 votes
1 answer

How to give user only view access for Spark application?

You can give users only view permission ...READ MORE

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

How to change encryption key value for local I/O?

There another property where you can set ...READ MORE

answered Mar 14, 2019 in Apache Spark by Raj
67 views