Github user kanzhang commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6774#discussion_r32445194
  
    --- Diff: core/src/main/scala/org/apache/spark/SecurityManager.scala ---
    @@ -365,10 +365,12 @@ private[spark] class SecurityManager(sparkConf: 
SparkConf)
           cookie
         } else {
           // user must have set spark.authenticate.secret config
    -      sparkConf.getOption("spark.authenticate.secret") match {
    +      // For Master/Worker, auth secret is in conf; for Executors, it is 
in env variable
    +      sys.env.get(SecurityManager.ENV_AUTH_SECRET)
    +        
.orElse(sparkConf.getOption(SecurityManager.SPARK_AUTH_SECRET_CONF)) match {
             case Some(value) => value
             case None => throw new Exception("Error: a secret key must be 
specified via the " +
    --- End diff --
    
    SparkException?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to