Skip to content
Snippets Groups Projects
Commit 8d78c5f8 authored by Reynold Xin's avatar Reynold Xin
Browse files

Changed the logging level from info to warning when addJar(null) is

called.
parent 0eab7a78
No related branches found
No related tags found
No related merge requests found
......@@ -538,16 +538,17 @@ class SparkContext(
*/
def addJar(path: String) {
if (null == path) {
logInfo("null specified as parameter to addJar")
return
}
val uri = new URI(path)
val key = uri.getScheme match {
case null | "file" => env.httpFileServer.addJar(new File(uri.getPath))
case _ => path
logWarning("null specified as parameter to addJar",
new SparkException("null specified as parameter to addJar"))
} else {
val uri = new URI(path)
val key = uri.getScheme match {
case null | "file" => env.httpFileServer.addJar(new File(uri.getPath))
case _ => path
}
addedJars(key) = System.currentTimeMillis
logInfo("Added JAR " + path + " at " + key + " with timestamp " + addedJars(key))
}
addedJars(key) = System.currentTimeMillis
logInfo("Added JAR " + path + " at " + key + " with timestamp " + addedJars(key))
}
/**
......
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