Error while installing SparkR package using install_github

六月ゝ 毕业季﹏ 提交于 2019-12-02 11:32:59

I have installed SparkR on Windows 7, 64 bit with R-3.2.x and having Spark 1.4 installed on it.

** If you need to know about installing Spark on Windows, please check official documentation of Spark or step wise process listed here.

  • Go to bin folder of maven

    C:\Program Files\apache-maven-3.3.3\bin

  • Open notepad and paste the text

    "%~dp0\mvn.cmd" %*

  • Save the notepad in bin folder as mvn.bat as shown below

    C:\Program Files\apache-maven-3.3.3\bin\mvn.bat

  • Restart Rstudio and execute

    library(devtools) install_github("repo/SparkR-pkg", ref="branchname", subdir="pkg")

Since SparkR was merged into the Spark Core project starting in the 1.4 release in June 2015, right now the SparkR build instructions are same as the Spark build instructions. Make sure you add the maven flag -Psparkr for SparkR.

As an example, you can build a version of Spark with SparkR as follows:

build/mvn -Psparkr -DskipTests clean package

For more details, please see: http://spark.apache.org/docs/latest/building-spark.html.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!