Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To disable the Spark UI completely, follow the steps below.

  1. 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.

  2. Place the build jar in the <DAS_HOME>/repository/component/lib directory.
  3. Add the following property to the <DAS_HOME>/repository/conf/analytics/spark/spark-default.conf file.

    Code Block
    languagejava
    spark.ui.filters com.examples.BasicAuthenticationFilter
    spark.com.examples.BasicAuthenticationFilter.params username=admin,password=admin
  4. 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
  5. Restart the the DAS cluster.

...