Eu tive o mesmo problema HDP 2.1. Observando o link a seguir no MapR e RevR no GitHub . Parece que a variável LD_LIBRARY_PATH
precisa ser definida para a variável rJava.so.
HADOOP_STREAMING="/usr/lib/hadoop-mapreduce/hadoop-streaming-2.2.0.2.0.6.0-76.jar"
HADOOP_CONF="/etc/hadoop/conf"
LD_LIBRARY_PATH="/usr/lib64/R/library/rJava/libs/rJava.so"
HADOOP_COMMON_LIB_NATIVE_DIR="/usr/lib/hadoop/lib/native/"
Agora, ao executar o rhdfs no R, recebo os seguintes avisos, mas parece funcionar:
> hdfs.init()
14/11/12 09:20:42 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
14/11/12 09:20:43 WARN hdfs.BlockReaderLocal: The short-circuit local reads feature cannot be used because libhadoop cannot be loaded.
> hdfs.ls(".")
permission owner group size modtime file
1 drwx------ root root 0 2014-11-07 09:50 /user/root/.staging