输入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
确认你的hadoop环境是否启动了。
所有的节点都正常启动后,你再去尝试应该就没有问题了。
或者你去查看详细的log信息,定位会更准确些。