Skip to content

Commit

Permalink
Add local: URI support to addFile as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Chan committed Nov 1, 2013
1 parent e54a37f commit f3679fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/scala/org/apache/spark/SparkContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,8 @@ class SparkContext(
val uri = new URI(path)
val key = uri.getScheme match {
case null | "file" => env.httpFileServer.addFile(new File(uri.getPath))
case _ => path
case "local" => "file:" + uri.getPath
case _ => path
}
addedFiles(key) = System.currentTimeMillis

Expand Down

0 comments on commit f3679fd

Please sign in to comment.