File tree Expand file tree Collapse file tree 2 files changed +5
-18
lines changed
core/src/main/scala/org/apache/spark/deploy Expand file tree Collapse file tree 2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change 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 >
242229 </descriptors >
243230 </configuration >
244231 </execution >
245- </executions >
232+ </executions >
246233 </plugin >
247234 </plugins >
248235 </build >
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments