hadoop报错ConnectionRefused

来源:互联网 发布:tomcat java options 编辑:程序博客网 时间:2024/05/19 15:23
执行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

0 0