安装SparkR附带星火1.4 [英] Install SparkR that comes with Spark 1.4

查看:147
本文介绍了安装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.

这篇关于安装SparkR附带星火1.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆