RHadoop的安装

1.RHadoop包含3个包:rmr, rhdfs和rhbase.

rmr包:provides Hadoop MapReduce functionality in R

rhdfs包:provides HDFS file management in R

rhbase包:provides HBase database management from within R.(目前不需要使用)

2.安装rmr的包依赖:

sudo R CMD INSTALL Rcpp Rcpp_0.10.6.tar.gz sudo R CMD INSTALL RJSONIO RJSONIO_1.0-3.tar.gz
sudo R CMD INSTALL bitops bitops_1.0-6.tar.gz
sudo R CMD INSTALL digest digest_0.6.4.tar.gz
sudo R CMD INSTALL functional functional_0.4.tar.gz
sudo R CMD INSTALL stringr stringr_0.6.2.tar.gz
sudo R CMD INSTALL plyr plyr_1.8.tar.gz
sudo R CMD INSTALL reshape reshape2_1.2.2.tar.gz

3.安装rmr:sudo R CMD INSTALL rmr rmr2_2.3.0.tar.gz

4.安装rhdfs的包依赖rJava
sudo JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-amd64/jre R CMD javareconf
sudo R CMD INSTALL rJava rJava_0.9-5.tar.gz 

5.安装rhdfs:
sudo HADOOP_CMD=/usr/hadoop/bin/hadoop R CMD INSTALL rhdfs rhdfs_1.0.8.tar.gz

你可能感兴趣的:(RHadoop的安装)