为了账号安全,请及时绑定邮箱和手机立即绑定

为什么我输入 hadoop fs -ls / 不会出现hadoop文件夹?

为什么我输入 hadoop fs -ls / 不会出现hadoop文件夹?

[root@localhost conf]# hadoop fs -ls /Warning: $HADOOP_HOME is deprecated.15/09/16 00:49:47 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:48 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:49 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:50 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:51 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:52 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:53 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:54 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:55 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)15/09/16 00:49:56 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)ls: Call to localhost/127.0.0.1:9000 failed on connection exception: java.net.ConnectException: Connection refused[root@localhost conf]# hadoop fs -lsWarning: $HADOOP_HOME is deprecated.
查看完整描述

2 回答

?
慕莱坞8796057

TA贡献2条经验 获得超0个赞

hadoop fs  -ls -r /  是出现文件的,这是hadoop2的写法

hadoop fs  -lsr    /   这是hadoop1的写法

查看完整回答
反对 回复 2016-01-15
  • 2 回答
  • 0 关注
  • 2985 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信