RHadoop 环境安装
硬件:
软件:
==上面软件直接 install.package(' package name') 既可直接安装
==上面软件下载地址 https://github.com/RevolutionAnalytics/RHadoop/wiki/Downloads
注:环境变量
安装:
R CMD INSTALL ‘package name ’
测试:
安装成功
硬件:
centos6
16G memory
软件:
RJSONIO
digest
functional
stringr
==上面软件直接 install.package(' package name') 既可直接安装
rmr - 2.0.2
rhdfs - 1.0.5
rhbase - 1.1
==上面软件下载地址 https://github.com/RevolutionAnalytics/RHadoop/wiki/Downloads
注:环境变量
JAVA_HOME=/opt/java
HADOOP_HOME=/opt/hadoop
HIVE_HOME=/opt/hive
[b]export HADOOP_CMD="/opt/hadoop/bin/hadoop"
export HADOOP_STREAMING="/opt/hadoop/mapred/contrib/streaming/hadoop- 0.21.0-streaming.jar"[/b]
PATH=$JAVA_HOME/bin:$HADOOP_HOME/bin:$HIVE_HOME/bin:$PATH:$HOME/bin
export PATH JAVA_HOME HADOOP_HOME HIVE_HOME
安装:
R CMD INSTALL ‘package name ’
测试:
> library(rmr2)
载入需要的程辑包:Rcpp
载入需要的程辑包:RJSONIO
载入需要的程辑包:digest
载入需要的程辑包:functional
载入需要的程辑包:stringr
载入需要的程辑包:plyr library(rhdfs)
> library(rhdfs)
载入需要的程辑包:rJava
HADOOP_CMD=/opt/hadoop/bin/hadoop
Be sure to run hdfs.init()
安装成功