spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ashishdutt <ashish.du...@gmail.com>
Subject Re: SparkR Error in sparkR.init(master=“local”) in RStudio
Date Mon, 13 Jul 2015 14:26:37 GMT
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-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org


Mime
View raw message