hadoop fs -ls 命令出错

春秋醉春秋 发布于 2016/04/04 16:31
阅读 1K+
收藏 0


输入hadoop fs -ls 命令会出现下面所示  但输入jps 会有正常输出

hadoop@xudong :~/hadoop$ hadoop fs -ls

Java HotSpot(TM) Client VM warning: You have loaded library /home/hadoop/hadoop/lib/native/libhadoop.so.1.0.0 which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
16/04/04 16:31:04 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: Call From xudong/127.0.1.1 to localhost:8010 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

加载中
0
huan
huan
很明显 hdfs 8010端口无法连接,检查一下端口是否打开,另外防火墙是否配置正确。
0
漓江
漓江

确认你的hadoop环境是否启动了。

所有的节点都正常启动后,你再去尝试应该就没有问题了。

或者你去查看详细的log信息,定位会更准确些。

返回顶部
顶部