jiangxb1987 commented on a change in pull request #23820:
[SPARK-22860][CORE][YARN] Redact command line arguments for running Driver and
Executor before logging (standalone and YARN)
URL: https://github.com/apache/spark/pull/23820#discussion_r257723072
##########
File path:
core/src/main/scala/org/apache/spark/deploy/worker/ExecutorRunner.scala
##########
@@ -150,8 +150,10 @@ private[deploy] class ExecutorRunner(
val builder = CommandUtils.buildProcessBuilder(subsCommand, new
SecurityManager(conf),
memory, sparkHome.getAbsolutePath, substituteVariables)
val command = builder.command()
- val formattedCommand = command.asScala.mkString("\"", "\" \"", "\"")
- logInfo(s"Launch command: $formattedCommand")
+ val redactedCommand = Utils.redactCommandLineArgs(conf, command.asScala)
+ .mkString("\"", "\" \"", "\"")
+
Review comment:
nit: remove the blank line.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]