0

I know this is a very simple question, and I assume it has been asked before but I have been unable to find it. I would like to learn sparklyr. However, I wrote

devtools::install_github("rstudio/sparklyr")

install.packages(c("nycflights13", "Lahman"))

library(dplyr)
iris_tbl <- copy_to(sc, iris)

(from spark.rstudio.com) but I get the error:

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘dbDataType’ for signature ‘"spark_connection"’

I would very much appreciate the help. Thanks!

J.Con
  • 4,101
  • 4
  • 36
  • 64
madhatter5
  • 129
  • 2
  • 15
  • 1
    I just ran that code, along with `library(sparklyr)` and `sc <- spark_connect(master = "local")`; it worked fine... – RobertMyles Jun 24 '17 at 02:37
  • In my experience with sparklyr, you may need to attempt to re-establish the connection. I have had times where it would take a few tries to get it to work. And sometimes I would get a massive java error dump. – Alex Dometrius Jun 24 '17 at 03:23
  • Btw, after install you did remember to load the library correct? – Alex Dometrius Jun 24 '17 at 03:25
  • Thanks everyone, it worked now. I don't know why, because I did nothing different, but that's fine by me. – madhatter5 Jun 24 '17 at 13:51

0 Answers0