我想我已经正确安装了hadoop。如果我这样做了 jps
我可以看到namenode和datanode,没问题。
我打字的时候 hadoop fs -ls .
我得到一个错误:
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/db/hadoop-2.4.1/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'.
14/08/08 12:42:44 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: '.': No such file or directory
我打字的时候 hadoop dfs -ls .
我得到一个错误:
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /opt/db/hadoop-2.4.1/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'.
14/08/08 12:43:27 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
ls: '.': No such file or directory
当我打字的时候 hadoop hdfs -ls .
我得到一个错误: Error: Could not find or load main class hdfs
这与我是放置“.”还是“/”或我所在的任何目录无关。
这一切意味着什么?如何获得正常的预期输出?我错过了什么?
2条答案
按热度按时间dy1byipe1#
使用以下命令
iyr7buue2#
使用
我不认为有什么
hadoop hdfs