在Ubuntu中安装SparkR包

时间:2015-09-24 14:38:54

标签: r scala ubuntu sparkr

我是一名使用Linux的业余爱好者,只是刚刚与R一起工作。我们在Ubuntu 12.04上使用带有Ambari 2.0的HDP 2.2.6.0和spark 1.2.1 scala 2.10.4设置了一个集群安装

使用Rstudio服务器从amplab-extras源安装sparkR时,我收到以下错误。有人可以帮忙吗?我知道SparkR已被添加到最新版本的Spark 1.5.0中,但是,我们目前无法升级。

> library("devtools", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.2")
> library("rJava", lib.loc="~/R/x86_64-pc-linux-gnu-library/3.2")
> install_github("amplab-extras/SparkR-pkg",subdir="pkg")

Downloading GitHub repo amplab-extras/SparkR-pkg@master
Installing SparkR
/usr/lib/R/bin/R' --no-site-file --no-environ --no-save  \
  --no-restore CMD INSTALL  \
/tmp/RtmpnSUmAl/devtoolsa3f4787e0dc/amplab-extras-SparkR-pkg-e532627/pkg'  \
'  --library='/home/user/R/x86_64-pc-linux-gnu-library/3.2'  \
  --install-tests 

* installing *source* package ‘SparkR’ ...
** libs
** arch - 
./sbt/sbt assembly
/bin/bash: ./sbt/sbt: Permission denied
make: *** [target/scala-2.10/sparkr-assembly-0.1.jar] Error 126
ERROR: compilation failed for package ‘SparkR’
* removing ‘/home/user/R/x86_64-pc-linux-gnu-library/3.2/SparkR’
Error: Command failed (1)

终端中的类似错误

root@ahs02:/home/user/SparkR-pkg# ./install-dev.sh
* installing *source* package ‘SparkR’ ...
** libs
** arch - 
./sbt/sbt assembly
Launching sbt from sbt/sbt-launch-0.13.6.jar
Invalid or corrupt jarfile sbt/sbt-launch-0.13.6.jar
make: *** [target/scala-2.10/sparkr-assembly-0.1.jar] Error 1
ERROR: compilation failed for package ‘SparkR’
* removing ‘/home/user/SparkR-pkg/lib/SparkR’

0 个答案:

没有答案