YARN: AM Container error

 

 

mapreduce $ hadoop jar hadoop-mapreduce-examples-2.3.0-cdh5.1.0.jar wordcount /test1/records.txt output7
15/04/24 19:07:42 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
15/04/24 19:07:43 INFO client.RMProxy: Connecting to ResourceManager at /127.0.0.1:8023
15/04/24 19:07:44 INFO input.FileInputFormat: Total input paths to process : 1
15/04/24 19:07:44 INFO lzo.GPLNativeCodeLoader: Loaded native gpl library from the embedded binaries
15/04/24 19:07:44 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library [hadoop-lzo rev Unknown build revision
scripts/get_build_revision.sh: 21: scripts/get_build_revision.sh: [[: not found]
15/04/24 19:07:44 INFO mapreduce.JobSubmitter: number of splits:1
15/04/24 19:07:44 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1429873601001_0001
15/04/24 19:07:45 INFO impl.YarnClientImpl: Submitted application application_1429873601001_0001
15/04/24 19:07:45 INFO mapreduce.Job: The url to track the job: http://abc-um:8088/proxy/application_1429873601001_0001/
15/04/24 19:07:45 INFO mapreduce.Job: Running job: job_1429873601001_0001
15/04/24 19:07:50 INFO mapreduce.Job: Job job_1429873601001_0001 running in uber mode : false
15/04/24 19:07:50 INFO mapreduce.Job:  map 0% reduce 0%
15/04/24 19:07:50 INFO mapreduce.Job: Job job_1429873601001_0001 failed with state FAILED due to: Application application_1429873601001_0001 failed 2 times due to AM Container for appattempt_1429873601001_0001_000002 exited with  exitCode: -1 due to: File /home/abc/hadoop/tmp/nm-local-dir/usercache/abc/appcache/application_1429873601001_0001/container_1429873601001_0001_02_000001 does not exist
.Failing this attempt.. Failing the application.

https://issues.apache.org/jira/browse/YARN-367

原因: YARN won't read hdfs-default.xml for any of its configs

 

解决: 将这个配置从hdfs-site.xml 移动到core-side.xml文件中

    <property>
            <name>hadoop.tmp.dir</name>
            <value>/home/abc/hadoop/tmp</value>
    </property>

你可能感兴趣的:(yarn,AM Container)