Skip to content

Commit

Permalink
Fixed spark.addJar for R.
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk committed Mar 3, 2017
1 parent fe16bcb commit 031b648
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/pkg/R/context.R
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ spark.addFile <- function(path, recursive = FALSE) {
spark.addJar <- function(path, addToCurrentClassLoader = FALSE) {
sc <- getSparkContext()
normalizedPath <- suppressWarnings(normalizePath(path))
invisible(callJMethod(sc, "addJar", normalizedPath, addToCurrentClassLoader))
scala_sc = callJMethod(sc, "sc")
invisible(callJMethod(scala_sc, "addJar", normalizedPath, addToCurrentClassLoader))
}


Expand Down

0 comments on commit 031b648

Please sign in to comment.