Github user ArtRand commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala ---
    @@ -680,6 +686,18 @@ object SparkSubmit extends CommandLineUtils {
         (childArgs, childClasspath, sysProps, childMainClass)
    +  // [SPARK-20328]. HadoopRDD calls into a Hadoop library that fetches 
delegation tokens with
    +  // renewer set to the YARN ResourceManager.  Since YARN isn't configured 
in Mesos mode, we
    +  // must trick it into thinking we're YARN.
    +  private def setRMPrincipal(sysProps: HashMap[String, String]): Unit = {
    +    val shortUserName = 
    +    val key = s"spark.hadoop.${YarnConfiguration.RM_PRINCIPAL}"
    +    // scalastyle:off println
    +    printStream.println(s"Setting ${key} to ${shortUserName}")
    --- End diff --
    It only prints when `UserGroupInformation.isSecurityEnabled` and I think 
it's useful information whenever a job is run. 

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to