sparkr - JVM is not ready after 10 seconds -
i configured sparkr
tutorials, , working. able read database read.df
, nothing else works, , following error appears:
error in sparkr.init(master = "local") : jvm not ready after 10 seconds
why appear suddenly? i've read other users same problem, solutions given did not work. below code:
sys.setenv(spark_home= "c:/spark") sys.setenv(hadoop_home = "c:/hadoop") .libpaths(c(file.path(sys.getenv("spark_home"), "r", "lib"), .libpaths())) library(sparkr) #initialeze sparkr environment sys.setenv('sparkr_submit_args'='"--packages" "com.databricks:spark-csv_2.11:1.2.0" "sparkr-shell"') sys.setenv(spark_mem="4g") #create spark context , sql context sc <- sparkr.init(master = "local") sqlcontext <- sparkrsql.init(sc)
try few things below:
check if
c:/windows/system32/
there in path.check if
spark-submit.cmd
has proper execute permissions.if both above things true , if giving same error,
delete spark directory
, again create fresh 1unzipping spark gzip
file.
Comments
Post a Comment