We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 161cae3 commit e4a13feCopy full SHA for e4a13fe
core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1092,8 +1092,9 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
1092
*/
1093
def addFile(path: String, recursive: Boolean): Unit = {
1094
val uri = new URI(path)
1095
+ val file = new File(path)
1096
val schemeCorrectedPath = uri.getScheme match {
- case null | "local" => "file:" + uri.getPath
1097
+ case null | "local" => "file:" + file.getCanonicalPath
1098
case _ => path
1099
}
1100
0 commit comments