Installing of SparkR

后端 未结 4 1523
不思量自难忘°
不思量自难忘° 2020-11-27 03:21

I have the last version of R - 3.2.1. Now I want to install SparkR on R. After I execute:

> install.packages(\"SparkR\")

I got back:

4条回答
  •  鱼传尺愫
    2020-11-27 03:56

    SparkR requires not just an R package but an entire Spark backend to be pulled in. When you want to upgrade SparkR, you are upgrading Spark, not just the R package. If you want to go with SparkR then this blogpost might help you out: https://blog.rstudio.org/2015/07/14/spark-1-4-for-rstudio/.

    It should be said though: nowadays you may want to refer to the sparklyr package as it makes all of this a whole lot easier.

    install.packages("devtools")
    devtools::install_github("rstudio/sparklyr")
    library(sparklyr)
    spark_install(version = "1.6.2")
    spark_install(version = "2.0.0")
    

    It also offers more functionality than SparkR as well as a very nice interface to dplyr.

提交回复
热议问题