最近在学习hadoop出现的bug
19/11/19 10:17:59 INFO client.RMProxy: Connecting to ResourceManager at hadoop103/192.168.1.103:8032
19/11/19 10:18:02 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:03 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:04 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:05 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:06 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:07 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:08 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:09 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/11/19 10:18:10 INFO ipc.Client: Retrying connect to server: hadoop103/192.168.1.103:8032. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
问题原因:
我想上传dfs一个文件,我的hadoop集群是上图架构,想去实践一个上传文件,查看历史设立历史服务器,但是循环出现报错,开始排错。
因为其他配置没有问题,于是开始先去停掉服务stop-dfs.sh
停掉dfs,stop-yarn.sh
停掉yarn,然后去重启服务,start-dfs.sh
start-yarn.sh
开启两个服务,然后发现问题继续,然后挨个机器去jps,发现在我的103里面没有ResourceManager,于是在103直接重启 start-yarn.sh
发现,问题解决,应该是ResourceManager,没有启动,但是为什么没有启动不清楚,我是按照视频一点一点敲得,而且在jps的时候,发现了一个YarnChild进程,一会就消失了。总之,最后问题解决了,如果各位大哥知道原因还望告知。