Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Feedback.
  • Loading branch information
Marcelo Vanzin committed Nov 30, 2017
commit 515f8f8b1d2ebf56171df5372f13250d09415d2b
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ private[spark] class ApplicationMaster(args: ApplicationMasterArguments) extends
securityMgr.initializeAuth()
}

// If an auth secret is configured, propagate it to executors.
Option(securityMgr.getSecretKey()).foreach { secret =>
sparkConf.setExecutorEnv(SecurityManager.ENV_AUTH_SECRET, secret)
}

// Set system properties for each config entry. This covers two use cases:
// - The default configuration stored by the SparkHadoopUtil class
// - The user application creating a new SparkConf in cluster mode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ private[spark] class Client(
}
sys.env.get("PYTHONHASHSEED").foreach(env.put("PYTHONHASHSEED", _))
} else {
// Propagate the auth secret to the AM using the environment, if set.
// Only propagate the auth secret to the AM in client mode, using the environment, if set.
sparkConf.getOption(SecurityManager.SPARK_AUTH_SECRET_CONF).foreach { secret =>
env(SecurityManager.ENV_AUTH_SECRET) = secret
}
Expand Down