Skip to content

Commit

Permalink
change method name from addRemoteJarFile to checkRemoteJarFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Angers committed Jul 15, 2019
1 parent 03dcfaf commit 780a2b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/scala/org/apache/spark/SparkContext.scala
Expand Up @@ -1792,7 +1792,7 @@ class SparkContext(config: SparkConf) extends Logging {
}
}

def addRemoteJarFile(path: String): String = {
def checkRemoteJarFile(path: String): String = {
val hadoopPath = new Path(path)
val scheme = new URI(path).getScheme
if (!Array("http", "https", "ftp").contains(scheme)) {
Expand Down Expand Up @@ -1835,7 +1835,7 @@ class SparkContext(config: SparkConf) extends Logging {
case "file" => addLocalJarFile(new File(uri.getPath))
// A JAR file which exists locally on every worker node
case "local" => "file:" + uri.getPath
case _ => addRemoteJarFile(path)
case _ => checkRemoteJarFile(path)
}
}
if (key != null) {
Expand Down

0 comments on commit 780a2b5

Please sign in to comment.