GitHub user LantaoJin opened a pull request: https://github.com/apache/spark/pull/20574
[SPARK-23385][CORE] Allow SparkUITab to be customized adding in Spark⦠â¦Conf and loaded when creating SparkUI ## What changes were proposed in this pull request? It would be nice if there was a mechanism to allow to add customized SparkUITab (embedded like Jobs, Stages, Storage, Environment, Executors,...) to be registered through SparkConf settings. This would be more flexible when we need display some special information in UI rather than adding the embedded one by one and wait community to merge. I propose to introduce a new configuration option, spark.extraUITabs, that allows customized WebUITab to be specified in SparkConf and registered when SparkUI is created. Here is the proposed documentation for the new option: > A comma-separated list of classes that implement SparkUITab; when initializing SparkUI, instances of these classes will be created and registered to the tabs array in SparkUI. If a class has a two-argument constructor that accepts a SparkUI and AppStatusStore, that constructor will be called; If a class has a single-argument constructor that accepts a SparkUI; otherwise, a zero-argument constructor will be called. If no valid constructor can be found, the SparkUI creation will fail with an exception. ## How was this patch tested? 1. Offerred a unit test. 2. Check the WebUI to see a new tab called "Test" via `bin/spark-shell` --master local --driver-class-path /path/spark-core_2.11-*-tests.jar --conf `spark.extraUITabs=org.apache.spark.ui.TestUITab You can merge this pull request into a Git repository by running: $ git pull https://github.com/LantaoJin/spark SPARK-23385 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20574.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20574 ---- commit fb9a8a1be7fc515848b0906af8af31c4c8081807 Author: LantaoJin <jinlantao@...> Date: 2018-02-11T06:56:01Z [SPARK-23385][CORE] Allow SparkUITab to be customized adding in SparkConf and loaded when creating SparkUI ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org