[ 
https://issues.apache.org/jira/browse/SPARK-8340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14584815#comment-14584815
 ] 

nevi_me commented on SPARK-8340:
--------------------------------

I'm able to initialise SparkR, as after I create the SparkContext I can see the 
Spark UI at localhost:4040. 
I edited my Rprofile to include the SparkR package folder in my Spark folder, 
so that's not the problem.

I was using RStudio, I'll try the same from the shell and see if I get the same 
error.

> Error creating sparkR dataframe: Error in writeJobj(ocn, object): invalid 
> jobj 2
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-8340
>                 URL: https://issues.apache.org/jira/browse/SPARK-8340
>             Project: Spark
>          Issue Type: Bug
>          Components: SparkR
>    Affects Versions: 1.4.0
>         Environment: Windows 8.1, RRO R 3.2.0
>            Reporter: nevi_me
>
> I tried executing the following code:
> {code:title="extract from dataframe.R in examples"}
>   library(SparkR)
>   sc <- sparkR.init(appName="SparkR-DataFrame-example")
>   sqlContext <- sparkRSQL.init(sc)
>   localDF <- data.frame(name=c("John", "Smith", "Sarah"), age=c(19, 23, 18))
>   df <- createDataFrame(sqlContext, localDF)
> {code}
> I get the error:
> {code:title="error"}
>   Error in writeJobj(con, object) : invalid jobj 2
> {code}
> I also tried creating dataframes out of existing data.frames in my project, 
> but I get the same error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to