安装SparkR附带星火1.4
火花(1.4)的最新版本,现在带有SparkR。有谁知道如何去安装Windows上的SparkR执行?该sparkR.R脚本当前位于C:/spark-1.4.0/R/pkgs/R /
The newest version of Spark (1.4) now comes with SparkR. Does anyone know how to go about installing the SparkR implementation on Windows? The sparkR.R script is currently located in C:/spark-1.4.0/R/pkgs/R/
出现此是在正确的方向迈出的一步,但指令将适用于Windows,因为没有sparkR目录,因为它涉及到不行。
This appears to be a step in the right direction, but the instructions don't work for Windows as there is no sparkR directory as it relates to.
@DavidArenburg把我在正确的轨道上。
@DavidArenburg put me on the right track.
继Windows文档在C:\\火花1.4.0 \\ r \\ WINDOWS.md,我安装RTools并添加和里面运行R.exe到RTools我的电脑PATH
Following the Windows documentation in the C:\spark-1.4.0\R\WINDOWS.md, I installed RTools and added R.exe and RTools to my computers PATH.
然后,我跑了安装在C-dev.bat:\\火花1.4.0 \\ R此添加的lib \\ SparkR \\安装说我失踪了。
Then, I ran install-dev.bat in C:\spark-1.4.0\R This added the lib\SparkR\ installation that I was missing.
然后,在命令提示符下,我跑
Then, from the command prompt, I ran
mklink /D "C:\Program Files\R\R-3.1.3\library\SparkR" "C:\spark-1.4.0\R\lib\SparkR"
这增加了一个链接在我的R封装目录中的文件夹火花安装。
This added a link in my R packages directory to the installation in the spark folder.
library(SparkR) # this should run now.