问答详情
源自:3-5 HDFS使用

为什么我敲入 hadoop fs -ls 会出现 ls: unknown host: imooc


ls: unknown host: imooc


提问者:huangleisir 2015-07-19 16:24

个回答

  • Kit_Ren
    2015-07-27 11:40:52

    同学你好,可以将在etc/hosts文件里加把imooc加进去,即加入“127.0.0.1  imooc",或者在hadoop的xml配置文件中将imooc替换为你的主机名即可

  • Maxoi
    2015-11-21 14:34:59

    我输完

     hadoop fs -ls / 

    提示的是

    15/10/14 09:47:03 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/10/14 09:47:04 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/10/14 09:47:05 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)


    如果不CTRL+C就会一直跳

  • 慕尼黑6781522
    2015-10-29 11:02:50

    我也遇到这个问题了,怎么解决