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.