@@ -132,7 +132,7 @@ private[spark] class Client(
132132 sparkConf.getOption(" spark.yarn.maxAppAttempts" ).map(_.toInt) match {
133133 case Some (v) => appContext.setMaxAppAttempts(v)
134134 case None => logDebug(" spark.yarn.maxAppAttempts is not set. " +
135- " Cluster's default value will be used." )
135+ " Cluster's default value will be used." )
136136 }
137137 val capability = Records .newRecord(classOf [Resource ])
138138 capability.setMemory(args.amMemory + amMemoryOverhead)
@@ -912,7 +912,7 @@ object Client extends Logging {
912912 * classpath specified through the Hadoop and Yarn configurations.
913913 */
914914 private [yarn] def populateHadoopClasspath (conf : Configuration , env : HashMap [String , String ])
915- : Unit = {
915+ : Unit = {
916916 val classPathElementsToAdd = getYarnAppClasspath(conf) ++ getMRAppClasspath(conf)
917917 for (c <- classPathElementsToAdd.flatten) {
918918 YarnSparkHadoopUtil .addPathToEnvironment(env, Environment .CLASSPATH .name, c.trim)
@@ -989,12 +989,12 @@ object Client extends Logging {
989989 * @param args Client arguments (when starting the AM) or null (when starting executors).
990990 */
991991 private [yarn] def populateClasspath (
992- args : ClientArguments ,
993- conf : Configuration ,
994- sparkConf : SparkConf ,
995- env : HashMap [String , String ],
996- isAM : Boolean ,
997- extraClassPath : Option [String ] = None ): Unit = {
992+ args : ClientArguments ,
993+ conf : Configuration ,
994+ sparkConf : SparkConf ,
995+ env : HashMap [String , String ],
996+ isAM : Boolean ,
997+ extraClassPath : Option [String ] = None ): Unit = {
998998 extraClassPath.foreach(addClasspathEntry(_, env))
999999 addClasspathEntry(
10001000 YarnSparkHadoopUtil .expandEnvironment(Environment .PWD ), env
@@ -1033,8 +1033,8 @@ object Client extends Logging {
10331033 }
10341034
10351035 private def getUserClasspath (
1036- mainJar : Option [String ],
1037- secondaryJars : Option [String ]): Array [URI ] = {
1036+ mainJar : Option [String ],
1037+ secondaryJars : Option [String ]): Array [URI ] = {
10381038 val mainUri = mainJar.orElse(Some (APP_JAR )).map(new URI (_))
10391039 val secondaryUris = secondaryJars.map(_.split(" ," )).toSeq.flatten.map(new URI (_))
10401040 (mainUri ++ secondaryUris).toArray
@@ -1053,9 +1053,9 @@ object Client extends Logging {
10531053 * @param env Map holding the environment variables.
10541054 */
10551055 private def addFileToClasspath (
1056- uri : URI ,
1057- fileName : String ,
1058- env : HashMap [String , String ]): Unit = {
1056+ uri : URI ,
1057+ fileName : String ,
1058+ env : HashMap [String , String ]): Unit = {
10591059 if (uri != null && uri.getScheme == LOCAL_SCHEME ) {
10601060 addClasspathEntry(uri.getPath, env)
10611061 } else if (fileName != null ) {
0 commit comments