r - Unable to launch SparkR in RStudio -
after long , difficult installation process of sparkr getting new problems of launching sparkr.
my settings
r 3.2.0 rstudio 0.98.1103 rtools 3.3 spark 1.4.0 java version 8 sparkr 1.4.0 windows 7 sp 1 64 bit
now try use following code in r:
library(devtools) library(sparkr) sys.setenv(spark_mem="1g") sys.setenv(spark_home="c:/spark-1.4.0") sc <- sparkr.init(master="local")
i recieve following:
jvm not ready after 10 seconds
i trying add system variables spark path or java path.
do have advices me fix problems.
the next step me after testing local host start tests on running hadoop cluster.
i think bug has been resolved. try following,
sys.setenv(spark_home="c:\\spark-1.4.0") .libpaths(c(file.path(sys.getenv("spark_home"), "r", "lib"), .libpaths())) library("sparkr", lib.loc="c:\\spark-1.4.0\\lib") # use of \\ windows environment. library(sparkr) sc=sparkr.init(master="local")
launching java spark-submit command c:\spark-1.4.0/bin/spark-submit.cmd sparkr-shell
c:\users\ashish\appdata\local\temp\rtmpwqfsob\backend_portbdc329477c6
hope helps.
Comments
Post a Comment