$ sudo R CMD INSTALL rhdfs
* installing to library ‘/usr/lib64/R/library’
* installing *source* package ‘rhdfs’ ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
converting help for package ‘rhdfs’
finding HTML links ... done
hdfs-file-access html
hdfs-file-manip html
hdfs.defaults html
hdfs.file-level html
initialization html
rhdfs html
text.files html
** building package indices
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rhdfs', details:
call: fun(libname, pkgname)
error: Environment variable HADOOP_CMD must be set before loading package rhdfs
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/usr/lib64/R/library/rhdfs’
我已经尝试了很多轮迭代,仍然不行。我无法安装 rhdfs 和 rmr2。我已经设置了 HADOOP_CMD、JAVA_HOME、PATH 并在 includera 的 R evironment 中安装了 rjava。我根本无法加载 rhdfs。请帮助解决这个问题,或者我应该从 R - R、Studio 中卸载所有内容并重新安装。请帮忙..
当我尝试在 R 中安装 rhdfs 时,它给了我这个错误:
> install.packages("rhdfs")
Installing package into ‘/home/supstat/R/x86_64-unknown-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘rhdfs’ is not available (for R version 3.1.0)