Created on 01-14-2016 11:10 AM - edited 09-16-2022 02:57 AM
Hi,
I've install hadoop on 4 nodes. Node 1 and Node 4 are Namenode and standbynode with high availability. I've installed hadoop client on all 4 nodes. When I try to execute command on StandbyNode, "hadoop fs -text myfile.txt", I'm getting error "text: java.lang.NullPointerException". I can execute the same command on other 3 nodes.
I'm aware Namenode and Standbynode are master nodes and we don't install hadoop client on master nodes in production environment. However, I'm doing this in my test environment (for learning purpose) and I would like to know if there is any specific reason why I cannot execute "hadoop fs -text myfile.txt" on standby node.
PS: I can execute -ls, -mkdir, -chmod commands successfully on standby node.
Many thanks in advance.
Created 01-14-2016 12:31 PM
Apologies for the question. Found the solution. It was due to rack-topology.sh. We placed the correct file on Standby Node and everything is working fine now. Thanks.
Created 01-14-2016 12:31 PM
Apologies for the question. Found the solution. It was due to rack-topology.sh. We placed the correct file on Standby Node and everything is working fine now. Thanks.