Skip to content
Snippets Groups Projects
Commit 5c953522 authored by Timothy Hunter's avatar Timothy Hunter Committed by Matei Zaharia
Browse files

fixed small bug when classpath has some strange formatting

parent 370b9581
No related branches found
No related tags found
No related merge requests found
......@@ -253,9 +253,11 @@ extends MScheduler with spark.Scheduler with Logging
// Copy each JAR to a unique filename in the jarDir
for ((path, index) <- sc.jars.zipWithIndex) {
val file = new File(path)
val filename = index + "_" + file.getName
copyFile(file, new File(jarDir, filename))
filenames += filename
if (file.exists) {
val filename = index + "_" + file.getName
copyFile(file, new File(jarDir, filename))
filenames += filename
}
}
// Create the server
jarServer = new HttpServer(jarDir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment