@@ -46,10 +46,6 @@ object SparkSubmit {
4646 private val CLUSTER = 2
4747 private val ALL_DEPLOY_MODES = CLIENT | CLUSTER
4848
49- // A special jar name that indicates the class being run is inside of Spark itself, and therefore
50- // no user jar is needed.
51- private val SPARK_INTERNAL = " spark-internal"
52-
5349 // Special primary resource names that represent shells rather than application jars.
5450 private val SPARK_SHELL = " spark-shell"
5551 private val PYSPARK_SHELL = " pyspark-shell"
@@ -261,9 +257,7 @@ object SparkSubmit {
261257 // In yarn-cluster mode, use yarn.Client as a wrapper around the user class
262258 if (clusterManager == YARN && deployMode == CLUSTER ) {
263259 childMainClass = " org.apache.spark.deploy.yarn.Client"
264- if (args.primaryResource != SPARK_INTERNAL ) {
265- childArgs += (" --jar" , args.primaryResource)
266- }
260+ childArgs += (" --jar" , args.primaryResource)
267261 childArgs += (" --class" , args.mainClass)
268262 if (args.childArgs != null ) {
269263 args.childArgs.foreach { arg => childArgs += (" --arg" , arg) }
@@ -338,7 +332,7 @@ object SparkSubmit {
338332 * Return whether the given primary resource represents a user jar.
339333 */
340334 private def isUserJar (primaryResource : String ): Boolean = {
341- ! isShell(primaryResource) && ! isPython(primaryResource) && ! isInternal(primaryResource)
335+ ! isShell(primaryResource) && ! isPython(primaryResource)
342336 }
343337
344338 /**
@@ -355,10 +349,6 @@ object SparkSubmit {
355349 primaryResource.endsWith(" .py" ) || primaryResource == PYSPARK_SHELL
356350 }
357351
358- private [spark] def isInternal (primaryResource : String ): Boolean = {
359- primaryResource == SPARK_INTERNAL
360- }
361-
362352 /**
363353 * Merge a sequence of comma-separated file lists, some of which may be null to indicate
364354 * no files, into a single comma-separated string.
0 commit comments