...
To disable the Spark UI completely, follow the steps below.
Build a sample servlet filter
as described here.
Info You can use any servlet filter for this purpose. If you want to implement your own servley filter, you can follow the instructions in Apache Tomcat - Interface Filter.
- Place the build jar in the
<DAS_HOME>/repository/component/lib
directory. Add the following property to the
<DAS_HOME>/repository/conf/analytics/spark/spark-default.conf
file.Code Block language java spark.ui.filters com.examples.BasicAuthenticationFilter spark.com.examples.BasicAuthenticationFilter.params username=admin,password=admin
Add the following property to the
<DAS_HOME>/repository/conf/analytics/spark/external-spark-classpath.conf
file.Code Block repository/components/lib/basicAuthenticationFilter-0.0.1-SNAPSHOT.jar
- Restart the the DAS cluster.
...