Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Not Found on spark_connect #15

Open
MisterRuss opened this issue Mar 19, 2019 · 3 comments
Open

File Not Found on spark_connect #15

MisterRuss opened this issue Mar 19, 2019 · 3 comments

Comments

@MisterRuss
Copy link

I am working with sparkxgb on an Amazon EMR version 5.16 Spark cluster with RStudio 1.1.447 and R version 3.4.1. I install the libraries with:
devtools::install_github("rstudio/sparklyr")
devtools::install_github("rstudio/sparkxgb")

When I do a spark_connect
Sys.setenv("SPARK_HOME" = "/usr/lib/spark")
config <- spark_config()
config$spark.dynamicAllocation.enabled = "false"
config$spark.executor.memory <- "8G"
config$spark.executor.cores <- 4
config$spark.executor.instances <- 2
config$sparklyr.shell.driver-memory <- "4G"
config$sparklyr.shell.executor-memory <- "4G"
config$spark.yarn.executor.memoryOverhead <- "512"
#config$xgboost.spark.ignoreSsl <-"true"
sc <- spark_connect(master = "yarn-client", config = config)
I get:
Error in force(code) :
Failed during initialize_connection: java.io.FileNotFoundException: File file:/mnt/N0131005/.ivy2/jars/com.esotericsoftware.reflectasm_reflectasm-1.07.jar does not exist

If I do not load sparkxgb, I am able to spark_connect successfully (just no XGB).

@danielhstahl
Copy link

I have the same problem. Interestingly, com.esotericsoftware.reflectasm_reflectasm-1.07-shaded.jar does exist in .ivy2/jars. If I rename that file to com.esotericsoftware.reflectasm_reflectasm-1.07.jar then spark will connect; though XGBoost doesn't actually work when I do so.

@machielg
Copy link

machielg commented Aug 21, 2019

I fixed this problem: by adding com.esotericsoftware.reflectasm:reflectasm:1.08 to the spark.jars.packages:
.config("spark.jars.packages", "com.esotericsoftware.reflectasm:reflectasm:1.08,ml.dmlc:xgboost4j-spark:0.90")

@danielhstahl
Copy link

I've also created a PR that will resolve this issue in future releases (post .90):

dmlc/xgboost#4575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants