File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
core/src/main/scala/org/apache/spark/deploy Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -190,19 +190,19 @@ private[deploy] object RPackageUtils extends Logging {
190190 }
191191 }
192192
193- private def listFilesRecursively (dir : File ): Seq [File ] = {
193+ private def listFilesRecursively (dir : File ): Set [File ] = {
194194 if (! dir.exists()) {
195- Seq .empty[File ]
195+ Set .empty[File ]
196196 } else {
197197 if (dir.isDirectory) {
198198 val subDir = dir.listFiles(new FilenameFilter {
199199 override def accept (dir : File , name : String ): Boolean = {
200- ! dir.getAbsolutePath.contains(" SparkR" + File .separator )
200+ ! dir.getAbsolutePath.contains(" SparkR" ) && ! name.contains( " .zip " )
201201 }
202202 })
203- subDir.flatMap(listFilesRecursively)
203+ subDir.flatMap(listFilesRecursively).toSet
204204 } else {
205- Seq (dir)
205+ Set (dir)
206206 }
207207 }
208208 }
Original file line number Diff line number Diff line change @@ -376,11 +376,11 @@ object SparkSubmit {
376376 printErrorAndExit(s " $SPARKR_PACKAGE_ARCHIVE does not exist for R application in YARN mode. " )
377377 }
378378 val localURI = Utils .resolveURI(rPackageFile.getAbsolutePath)
379- val rExtras = RPackageUtils .zipRLibraries(new File (rPackagePath.get), SPARKR_EXTRAS_ARCHIVE )
380- val extrasURI = Utils .resolveURI(rExtras.getAbsolutePath).toString + " #sparkr-extras"
379+ // val rExtras = RPackageUtils.zipRLibraries(new File(rPackagePath.get), SPARKR_EXTRAS_ARCHIVE)
380+ // val extrasURI = Utils.resolveURI(rExtras.getAbsolutePath).toString + "#sparkr-extras"
381381
382382 // Assigns a symbol link name "sparkr" to the shipped package.
383- args.archives = mergeFileLists(args.archives, localURI.toString + " #sparkr" , extrasURI )
383+ args.archives = mergeFileLists(args.archives, localURI.toString + " #sparkr" )
384384 }
385385
386386 // If we're running a R app, set the main class to our specific R runner
You can’t perform that action at this time.
0 commit comments