Skip to content

Commit e6b573b

Browse files
committed
address vanzin's comments
1 parent f11f84a commit e6b573b

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

assembly/pom.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -217,19 +217,6 @@
217217
<artifactId>maven-assembly-plugin</artifactId>
218218
<version>2.4</version>
219219
<executions>
220-
<!--execution>
221-
<id>pyspark-zip</id>
222-
<phase>package</phase>
223-
<goals>
224-
<goal>single</goal>
225-
</goals>
226-
<configuration>
227-
<skipAssembly>true</skipAssembly>
228-
<descriptors>
229-
<descriptor>src/main/assembly/pyspark-assembly.xml</descriptor>
230-
</descriptors>
231-
</configuration>
232-
</execution-->
233220
<execution>
234221
<id>dist</id>
235222
<phase>package</phase>
@@ -242,7 +229,7 @@
242229
</descriptors>
243230
</configuration>
244231
</execution>
245-
</executions>
232+
</executions>
246233
</plugin>
247234
</plugins>
248235
</build>

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -350,21 +350,21 @@ object SparkSubmit {
350350
printErrorAndExit("py4j-0.8.2.1-src.zip does not exist for python application " +
351351
"in yarn mode.")
352352
}
353-
pythonPath += Seq(pyLibPath, "pyspark.zip").mkString(File.separator)
354-
pythonPath += Seq(pyLibPath, "py4j-0.8.2.1-src.zip").mkString(File.separator)
353+
pythonPath += pyArchivesFile.getAbsolutePath()
354+
pythonPath += py4jFile.getAbsolutePath()
355355
}
356356
pyArchives = pythonPath.mkString(",")
357357
}
358358

359-
pyArchives = pyArchives.split(",").map( localPath=> {
359+
pyArchives = pyArchives.split(",").map { localPath=>
360360
val localURI = Utils.resolveURI(localPath)
361361
if (localURI.getScheme != "local") {
362362
args.files = mergeFileLists(args.files, localURI.toString)
363363
(new Path(localPath)).getName
364364
} else {
365365
localURI.getPath.toString
366366
}
367-
}).mkString(File.pathSeparator)
367+
}.mkString(File.pathSeparator)
368368
sysProps("spark.submit.pyArchives") = pyArchives
369369
}
370370

0 commit comments

Comments
 (0)