Skip to content

Commit

Permalink
[MINOR] Define gluten ui enabled key in GlutenConfig (#4164)
Browse files Browse the repository at this point in the history
minor fix, define gluten ui enabled key in GlutenConfig
  • Loading branch information
wForget authored Dec 23, 2023
1 parent f956945 commit 7fff4e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private[glutenproject] class GlutenDriverPlugin extends DriverPlugin with Loggin
}

override def registerMetrics(appId: String, pluginContext: PluginContext): Unit = {
if (pluginContext.conf().getBoolean("spark.gluten.ui.enabled", true)) {
if (pluginContext.conf().getBoolean(GlutenConfig.GLUTEN_UI_ENABLED, true)) {
_sc.foreach {
sc =>
GlutenEventUtils.attachUI(sc)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ object GlutenConfig {
// Tokens of current user, split by `\0`
val GLUTEN_UGI_TOKENS = "spark.gluten.ugi.tokens"

val GLUTEN_UI_ENABLED = "spark.gluten.ui.enabled"

var ins: GlutenConfig = _

def getConf: GlutenConfig = {
Expand Down

0 comments on commit 7fff4e5

Please sign in to comment.