Hi,
Try this
> Sys.setenv(SPARK_HOME="C:\\spark-1.4.0")  # The path to your spark
> installation
> .libPaths(c(file.path(Sys.getenv("SPARK_HOME"), "R", "lib"), .libPaths()))
> library("SparkR", lib.loc="C:\\spark-1.4.0\\lib") # The path to the lib
> folder in the spark location
> library(SparkR)
> sc=sparkR.init(master="local")
Launching java with spark-submit command C:\spark-1.4.0/bin/spark-submit.cmd 
sparkr-shell
C:\Users\Ashish\AppData\Local\Temp\RtmpWqFsOB\backend_portbdc329477c6 
> 

Cheers,
Ashish



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/SparkR-Error-in-sparkR-init-master-local-in-RStudio-tp23768p23800.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@spark.apache.org
For additional commands, e-mail: user-h...@spark.apache.org

Reply via email to