我是hadoop新手,我有几个问题,但我无法找到任何解决方案我的问题如下:
**Created a directory on HDFS using below command:
--bin/hadoop fs -mkdir /user/abhijit/apple_poc
**Checking if my directory has been created:
--bin/hadoop fs -ls
--(output)-->drwxr-xr-x - abhijit supergroup 0 2013-07-11 11:09 /user/abhijit/apple_poc
**Stopping all hadoop daemons:
--bin/stop-all.sh
**Restarting all the daemons again:
--bin/start-all.sh
**Again checking if my directory on HDFS created above is present or not:
--bin/hadoop fs -ls
--(output):
2013-07-11 11:37:57.304 java[3457:1903] Unable to load realm info from SCDynamicStore
13/07/11 11:37:58 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)
13/07/11 11:37:59 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)
13/07/11 11:38:00 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)
13/07/11 11:38:01 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)
13/07/11 11:38:02 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)
13/07/11 11:38:03 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)
13/07/11 11:38:04 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)
13/07/11 11:38:05 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)
13/07/11 11:38:06 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)
13/07/11 11:38:07 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)
Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:9000 failed on connection exception: java.net.ConnectException: Connection refused
请澄清。。
我真的不知道我做错了什么,或是有什么东西要改变的财产档案?
hdfs的默认目录存储是/user//,我是否应该更改此默认目录以解决问题?
每次我都要格式化namenode来解决这个问题,但是在格式化之后,我上面创建的目录就丢失了。
请让我知道这背后的问题是什么。。非常感谢你的帮助。
谢谢,阿比Git
1条答案
按热度按时间2nbm6dog1#
这个错误的发生是因为多方面的原因,我一直在玩hadoop。多次出现此问题,原因不同
如果主节点没有运行->检查日志
如果主机文件中没有提到正确的ip[设置主机名后,在主机文件中提供其ip,以便其他节点可以访问它]