Make sure your tcp port NN is at 50075, which is defined in hdfs-site.xml
<property> <name>dfs.namenode.rpc-address.nn1</name> <value>r101072036.sqa.zmf:9000</value> </property>
My problem is that I use the http-address port to connect to NN, it throws the same exception as you.
The http port is also configured in hdfs-site.xml:
<property> <name>dfs.namenode.http-address.nn1</name> <value>r101072036.sqa.zmf:8000</value> </property>
eleforest
source share