Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running hdfs.init() #3

Open
piccolbo opened this issue Apr 23, 2013 · 5 comments
Open

Error when running hdfs.init() #3

piccolbo opened this issue Apr 23, 2013 · 5 comments

Comments

@piccolbo
Copy link
Collaborator

Opened on behalf of @yoonus786

Hi, I am able to run hdfs.init() in master node. But I am getting error when I am running in the slave node.

hdfs.init()
Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, :
java.io.IOException: failure to login
Please let me know what will be the problem here.

Thanks,
Yoonus

@RevolutionAnalytics
Copy link
Collaborator

Sounds like a Hadoop configuration issue. What does your hadoop classpath look like on the node that fails? Can you access hdfs on that node using the hadoop command line?

@yoonus786
Copy link

I am able to run jps in master node and get
11510 NameNode
11697 DataNode
11898 SecondaryNameNode
20098 HRegionServer
4038 Jps
19824 HQuorumPeer
11993 JobTracker
12204 TaskTracker
19897 HMaster

and similarly jps in slave node
19029 DataNode
19191 TaskTracker
13100 Jps

Also, I am able to access the hdfs file from slave node using
bin/hadoop fs -ls /

@RevolutionAnalytics
Copy link
Collaborator

How are you invoking rhdfs? From a standard R console or from some other process? what does your hadoop classpath look like?

@yugi2245
Copy link

Hi All,

I too face the same issue and resolved by reconfiguring the Java for R by simple command in Linux CentOS 6.2.

$R CMD javareconf

Thanks,
Yugandhar

@anoopkumarkm
Copy link

Please follow steps below from R shell after installing rhdfs and configuring java using R CMD javareconf

Sys.setenv(HADOOP_CMD="/usr/bin/hadoop")
library(rhdfs)
hdfs.init()
hdfs.ls("/")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants