@@ -132,7 +132,7 @@ private[spark] class Client(
132
132
sparkConf.getOption(" spark.yarn.maxAppAttempts" ).map(_.toInt) match {
133
133
case Some (v) => appContext.setMaxAppAttempts(v)
134
134
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." )
136
136
}
137
137
val capability = Records .newRecord(classOf [Resource ])
138
138
capability.setMemory(args.amMemory + amMemoryOverhead)
@@ -912,7 +912,7 @@ object Client extends Logging {
912
912
* classpath specified through the Hadoop and Yarn configurations.
913
913
*/
914
914
private [yarn] def populateHadoopClasspath (conf : Configuration , env : HashMap [String , String ])
915
- : Unit = {
915
+ : Unit = {
916
916
val classPathElementsToAdd = getYarnAppClasspath(conf) ++ getMRAppClasspath(conf)
917
917
for (c <- classPathElementsToAdd.flatten) {
918
918
YarnSparkHadoopUtil .addPathToEnvironment(env, Environment .CLASSPATH .name, c.trim)
@@ -989,12 +989,12 @@ object Client extends Logging {
989
989
* @param args Client arguments (when starting the AM) or null (when starting executors).
990
990
*/
991
991
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 = {
998
998
extraClassPath.foreach(addClasspathEntry(_, env))
999
999
addClasspathEntry(
1000
1000
YarnSparkHadoopUtil .expandEnvironment(Environment .PWD ), env
@@ -1033,8 +1033,8 @@ object Client extends Logging {
1033
1033
}
1034
1034
1035
1035
private def getUserClasspath (
1036
- mainJar : Option [String ],
1037
- secondaryJars : Option [String ]): Array [URI ] = {
1036
+ mainJar : Option [String ],
1037
+ secondaryJars : Option [String ]): Array [URI ] = {
1038
1038
val mainUri = mainJar.orElse(Some (APP_JAR )).map(new URI (_))
1039
1039
val secondaryUris = secondaryJars.map(_.split(" ," )).toSeq.flatten.map(new URI (_))
1040
1040
(mainUri ++ secondaryUris).toArray
@@ -1053,9 +1053,9 @@ object Client extends Logging {
1053
1053
* @param env Map holding the environment variables.
1054
1054
*/
1055
1055
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 = {
1059
1059
if (uri != null && uri.getScheme == LOCAL_SCHEME ) {
1060
1060
addClasspathEntry(uri.getPath, env)
1061
1061
} else if (fileName != null ) {
0 commit comments