执行hadoop fs -ls时 报错:
ls: Call From SERVER226/10.0.0.226 to SERVER226:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

感谢:
https://segmentfault.com/q/1010000005689441

将fs.defaultFS端口和rpc-address端口改成一致就可以了

改成一致后,再次执行:

ls: Operation category READ is not supported in state standby

解决方法:
重新hdfs zkfc –formatZK

参考:
http://blog.csdn.net/ZHAOLEI5911/article/details/51493637

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐