Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ private[spark] class Client(
amContainer.setCommands(printableCommands)

logDebug("===============================================================================")
logDebug("Yarn AM launch context:")
logDebug("YARN AM launch context:")
logDebug(s" user class: ${Option(args.userClass).getOrElse("N/A")}")
logDebug(" env:")
launchEnv.foreach { case (k, v) => logDebug(s" $k -> $v") }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,15 @@ class ExecutorRunnable(
val commands = prepareCommand(masterAddress, slaveId, hostname, executorMemory, executorCores,
appId, localResources)

logInfo(s"Setting up executor with environment: $env")
logInfo("Setting up executor with commands: " + commands)
ctx.setCommands(commands)
logInfo("===============================================================================")
logInfo("YARN executor launch context:")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to combine them into a single logging statement to avoid interleaved logging messages?

logInfo(" env:")
env.foreach { case (k, v) => logInfo(s" $k -> $v") }
logInfo(" command:")
logInfo(s" ${commands.mkString(" ")}")
logInfo("===============================================================================")

ctx.setCommands(commands)
ctx.setApplicationACLs(YarnSparkHadoopUtil.getApplicationAclsForYarn(securityMgr))

// If external shuffle service is enabled, register with the Yarn shuffle service already
Expand Down