运行上传在HDFS上的文件,出现错误:
19/03/05 22:16:58 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
19/03/05 22:16:59 INFO client.RMProxy: Connecting to ResourceManager at hadoop001/127.0.0.1:8032
19/03/05 22:17:00 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:01 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:02 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:03 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:04 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:05 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:06 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
19/03/05 22:17:07 INFO ipc.Client: Retrying connect to server: hadoop001/127.0.0.1:8032. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
发现自己的resourcemanager没有启动成功
[root@hadoop001 hadoop-2.7.1]# jps
2576 NodeManager
2817 Jps
1750 DataNode
1656 NameNode
解决方法:
sbin/yarn-daemon.sh start resourcemanager