hadoop运行任务时出现如下重试异常, 主要原因是没有开启 yarn
start-yarn.sh即可 开启ResourceManager服务
[centos@hd3 /opt/hadoop/etc/hadoop]$ hadoop jar /opt/hadoop/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.7.jar pi 2 2
Number of Maps = 2
Samples per Map = 2
Wrote input for Map #0
Wrote input for Map #1
Starting Job
18/11/28 11:32:07 INFO client.RMProxy: Connecting to ResourceManager at hd3/192.168.25.3:8032
18/11/28 11:32:09 INFO ipc.Client: Retrying connect to server: hd3/192.168.25.3:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
18/11/28 11:32:10 INFO ipc.Client: Retrying connect to server: hd3/192.168.25.3:8032. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
18/11/28 11:32:11 INFO ipc.Client: Retrying connect to server: hd3/192.168.25.3:8032. Already tried 2 time(s); retry policy is Re