The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata

The Spark UI is mainly used to monitor the performance of your Spark setup. However, it may also expose sensitive data such as the keystore password in some of the UIs depending on your Spark configurations. For security purposes, you can either disable the Spark UI completely, remove selected tabs from the selected UI, or disable only the required properties.

For more information about Spark UI, see Spark Troubleshooting.

The following sections cover the different methods to disable the Spark UI.

Disabling the Spark UI completely

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

  1. Build a sample servlet filter.

    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.

    spark.ui.filters com.examples.BasicAuthenticationFilter username=admin,password=admin
  4. Add the following property to the <DAS_HOME>/repository/conf/analytics/spark/external-spark-classpath.conf file.

  5. Restart the the DAS cluster.

Disabling selected UIs

Disable the Spark UI for your DAS deployment by setting the spark.ui.enabled property to false in the <DAS_HOME>/repository/conf/analytics/spark/spark-defaults.conf file as shown below.

spark.ui.enabled false

Disabling the selected properties

Exclude the relevant Spark properties from being displayed in the Environment tab of the Application UI by editing your spark properties.

  • No labels