error when executing rhdfs.init() on cloudera VM

103 views
Skip to first unread message

Nicola Logrillo

unread,
Dec 11, 2014, 9:06:04 AM12/11/14
to rha...@googlegroups.com
Hi,
i'm trying to use RHadoop with cloudera VM. When i run rhdfs.init() i have this error:

> hdfs.init()
14/12/11 05:55:21 ERROR security.UserGroupInformation: Unable to find JAAS classes:com.sun.security.auth.UnixPrincipal not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/home/cloudera/R/x86_64-redhat-linux-gnu-library/3.1/rJava/java/boot/], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
14/12/11 05:55:21 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  :
  java.io.IOException: failure to login

this is the code i use to run rhdfs:

> Sys.setenv("HADOOP_CMD"="/usr/lib/hadoop/bin/hadoop")
> Sys.setenv("HADOOP_STREAMING"="/usr/lib/hadoop-0.20-mapreduce/contrib/streaming/hadoop-streaming-2.5.0-mr1-cdh5.2.0.jar")
> Sys.setenv("HADOOP_HOME"="/usr/lib/hadoop")
> Sys.setenv("HADOOP_CONF_DIR"="/etc/hadoop/conf")
> library(rhdfs)
Loading required package: rJava

HADOOP_CMD=/usr/lib/hadoop/bin/hadoop

Be sure to run hdfs.init()
> hdfs.init()

what's wrong?

Antonio Piccolboni

unread,
Dec 11, 2014, 1:23:22 PM12/11/14
to rha...@googlegroups.com
Not sure but take a look at this post


Down in the comments somebody had the same problem. They installed a new JDK and then it went away,  I am a bit surprised they didn't do a R CMD javareconf after that but whatever rocks their boat.
Reply all
Reply to author
Forward
0 new messages