分享

HDFS启动执行命令提示:DEPRECATED: Use of this script to execute hdfs command

神豪。 发表于 2016-3-29 14:11:10 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 15174
格式化完Hadoop,全部启动完成。
输入 hdfs dfs -ls /
提示:

[root@n1 ~]# hadoop dfs -ls /
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

Java HotSpot(TM) Client VM warning: You have loaded library /opt/src/hadoop/lib/native/libhadoop.so 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/03/29 07:05:56 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
-ls: java.net.UnknownHostException: mycluster
Usage: hadoop fs [generic options] -ls [-d] [-h] [-R] [<path> ...]

已有(3)人评论

跳转到指定楼层
starrycheng 发表于 2016-3-29 15:56:50
hadoop fs -ls /
或则
hdfs dfs -ls /

更多:

Hadoop Shell命令字典(可收藏)
http://www.aboutyun.com/forum.php?mod=viewthread&tid=6983


回复

使用道具 举报

神豪。 发表于 2016-3-29 16:08:09
starrycheng 发表于 2016-3-29 15:56
hadoop fs -ls /
或则
hdfs dfs -ls /

好像还是不可以的
回复

使用道具 举报

starrycheng 发表于 2016-3-29 19:24:55
神豪。 发表于 2016-3-29 16:08
好像还是不可以的

那就是安装问题了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条