-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-22860] [SPARK-24621] [Core] [WebUI] - hide key password from linux ps listing and masterwebui point to https if ssl enabled #21514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
380d97d
f38de2b
825380a
050b226
bc8a833
39bb2a0
d4de123
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,7 +130,13 @@ private[deploy] class Master( | |
| logInfo(s"Running Spark version ${org.apache.spark.SPARK_VERSION}") | ||
| webUi = new MasterWebUI(this, webUiPort) | ||
| webUi.bind() | ||
| masterWebUiUrl = "http://" + masterPublicAddress + ":" + webUi.boundPort | ||
| val SSL_ENABLED = conf.getBoolean("spark.ssl.enabled", false) | ||
| val uriScheme = "http://" | ||
| if (SSL_ENABLED) { | ||
| uriScheme = "https://" | ||
|
||
| } | ||
| masterWebUiUrl = uriScheme + masterPublicAddress + ":" + webUi.boundPort | ||
| //masterWebUiUrl = "http://" + masterPublicAddress + ":" + webUi.boundPort | ||
|
||
| if (reverseProxy) { | ||
| masterWebUiUrl = conf.get("spark.ui.reverseProxyUrl", masterWebUiUrl) | ||
| webUi.addProxy() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,7 +100,7 @@ private[spark] class StandaloneSchedulerBackend( | |
| val sparkJavaOpts = Utils.sparkJavaOpts(conf, SparkConf.isExecutorStartupConf) | ||
| val javaOpts = sparkJavaOpts ++ extraJavaOpts | ||
| val command = Command("org.apache.spark.executor.CoarseGrainedExecutorBackend", | ||
| args, sc.executorEnvs, classPathEntries ++ testingClassPath, libraryPathEntries, javaOpts) | ||
| args, sc.executorEnvs, classPathEntries ++ testingClassPath, libraryPathEntries, javaOpts.filterNot(_.startsWith("-Dspark.ssl.keyStorePassword")).filterNot(_.startsWith("-Dspark.ssl.keyPassword"))) | ||
|
||
| val webUrl = sc.ui.map(_.webUrl).getOrElse("") | ||
| val coresPerExecutor = conf.getOption("spark.executor.cores").map(_.toInt) | ||
| // If we're using dynamic allocation, set our initial executor limit to 0 for now. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: rename to
sslEnabledThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done