rhdfs hdfs.init() error

298 views
Skip to first unread message

Paley Louie

unread,
Nov 18, 2014, 5:01:31 AM11/18/14
to rha...@googlegroups.com
Hi, I have previously installed rhdfs with Hadoop 0.20.2-cdh3u3, now my hadoop version has changed to Hadoop 2.2.0 (the "HADOOP_CMD" was changed to Hadoop 2.2.0 ). When I run hdfs.init(), I got the error as:
 Loading required package: rJava
HADOOP_CMD=/data/hadoopenv/hadoop-0.20.1-gdt/bin/hadoop Be sure to run hdfs.init() Error in .jnew("org/apache/hadoop/conf/Configuration") : java.lang.ClassNotFoundException

when I change the "HADOOP_CMD" to  0.20.2-cdh3u3, it works again. 

Could anyone tell me what could be done to handle this problem? 

Thank you very much !!!

Antonio Piccolboni

unread,
Nov 19, 2014, 12:38:47 PM11/19/14
to RHadoop Google Group
You said you changed HADOOP_CMD but the new setting didn't seem to have taken effect from the error message. Since I have no reason to doubt your report, I suspect that you updated the variable in one environment and the R interpreter is running in a different one. Before running hdfs.init() please enter

Sys.getenv("HADOOP_CMD")

and make sure that it's set as you expect. If not, you can use Sys.setenv to correct it.

Thanks

--
post: rha...@googlegroups.com ||
unsubscribe: rhadoop+u...@googlegroups.com ||
web: https://groups.google.com/d/forum/rhadoop?hl=en-US
---
You received this message because you are subscribed to the Google Groups "RHadoop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rhadoop+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages