Re: Help with error initializing SparkR.

2014-10-31 Thread tongzzz
try run this code:

sudo -E R CMD javareconf

and then start spark, basically, it syncs R's java configuration with your
Java configuration
Good luck!




--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Help-with-error-initializing-SparkR-tp4495p17871.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



Re: Help with error initializing SparkR.

2014-04-20 Thread tongzzz
Problem solved, Shivaram's answer in the github post is the perfect solution
for me.
See https://github.com/amplab-extras/SparkR-pkg/issues/46#

Thanks!



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Help-with-error-initializing-SparkR-tp4495p4504.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.


Help with error initializing SparkR.

2014-04-19 Thread tongzzz
I can't initialize sc context after a successful install on Cloudera
quickstart VM.
This is the error message:

> library(SparkR)
Loading required package: rJava
[SparkR] Initializing with classpath
/usr/lib64/R/library/SparkR/sparkr-assembly-0.1.jar

> sc <- sparkR.init("local")
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  : 
  java.lang.NoClassDefFoundError: scala.collection.immutable.Vector


I also created an issue request on the github, which contains more details
about this issue
 
https://github.com/amplab-extras/SparkR-pkg/issues/46


Thanks for any help.



--
View this message in context: 
http://apache-spark-user-list.1001560.n3.nabble.com/Help-with-error-initializing-SparkR-tp4495.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.