Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Fix INSTANCE errors by stabilizing the sort order of "lib/spark/*" …
Browse files Browse the repository at this point in the history
…JARs in classpath
  • Loading branch information
mars committed May 23, 2017
1 parent d86ef0d commit aa01be5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ object Common extends EitherLogging {
}

def jarFilesForSpark(pioHome: String): Array[File] = {
def jarFilesAt(path: File): Array[File] = path.listFiles filter {
_.getName.toLowerCase.endsWith(".jar")
}
def jarFilesAt(path: File): Array[File] = path.listFiles
.filter { _.getName.toLowerCase.endsWith(".jar") }
.sortBy( f => f.getName ) // stable sorting to avoid classpath variability
jarFilesAt(new File(pioHome, "lib/spark"))
}

Expand Down

0 comments on commit aa01be5

Please sign in to comment.