Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

failed 1 times due to AM Container - Does not MapReduce

Highlighted

failed 1 times due to AM Container - Does not MapReduce

Contributor

Can anyone suggest what has gone wrong here? This is CDH 4.7 installed via Cloudera Manager 4.8.3

It previously had CDH5 but I had to remove that and downgrade. 

This cluster has not worked yet but everything is green in the Cloudera Manager. 

 

The frustrating thing is that there are NO logs relevant to the job. 

 

 


[alex@test-node1 hadoop-mapreduce]$ hadoop jar hadoop-mapreduce-examples.jar wordcount /user/alex/ /junk
14/06/27 16:44:57 INFO service.AbstractService: Service:org.apache.hadoop.yarn.client.YarnClientImpl is inited.
14/06/27 16:44:57 INFO service.AbstractService: Service:org.apache.hadoop.yarn.client.YarnClientImpl is started.
14/06/27 16:44:57 INFO input.FileInputFormat: Total input paths to process : 2
14/06/27 16:44:57 INFO mapreduce.JobSubmitter: number of splits:2
14/06/27 16:44:57 WARN conf.Configuration: mapred.jar is deprecated. Instead, use mapreduce.job.jar
14/06/27 16:44:57 WARN conf.Configuration: mapred.output.value.class is deprecated. Instead, use mapreduce.job.output.value.class
14/06/27 16:44:57 WARN conf.Configuration: mapreduce.combine.class is deprecated. Instead, use mapreduce.job.combine.class
14/06/27 16:44:57 WARN conf.Configuration: mapreduce.map.class is deprecated. Instead, use mapreduce.job.map.class
14/06/27 16:44:57 WARN conf.Configuration: mapred.job.name is deprecated. Instead, use mapreduce.job.name
14/06/27 16:44:57 WARN conf.Configuration: mapreduce.reduce.class is deprecated. Instead, use mapreduce.job.reduce.class
14/06/27 16:44:57 WARN conf.Configuration: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir
14/06/27 16:44:57 WARN conf.Configuration: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir
14/06/27 16:44:57 WARN conf.Configuration: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
14/06/27 16:44:57 WARN conf.Configuration: mapred.output.key.class is deprecated. Instead, use mapreduce.job.output.key.class
14/06/27 16:44:57 WARN conf.Configuration: mapred.working.dir is deprecated. Instead, use mapreduce.job.working.dir
14/06/27 16:44:57 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1403886045551_0003
14/06/27 16:44:58 INFO client.YarnClientImpl: Submitted application application_1403886045551_0003 to ResourceManager at newhadoopmaster/10.183.242.99:8032
14/06/27 16:44:58 INFO mapreduce.Job: The url to track the job: http://newhadoopmaster:8088/proxy/application_1403886045551_0003/
14/06/27 16:44:58 INFO mapreduce.Job: Running job: job_1403886045551_0003
14/06/27 16:45:00 INFO mapreduce.Job: Job job_1403886045551_0003 running in uber mode : false
14/06/27 16:45:00 INFO mapreduce.Job: map 0% reduce 0%
14/06/27 16:45:00 INFO mapreduce.Job: Job job_1403886045551_0003 failed with state FAILED due to: Application application_1403886045551_0003 failed 1 times due to AM Container for appattempt_1403886045551_0003_000001 exited with exitCode: 1 due to:
.Failing this attempt.. Failing the application.
14/06/27 16:45:00 INFO mapreduce.Job: Counters: 0

 

 

 

 

 

[alex@test-node1 hadoop-mapreduce]$ curl http://newhadoopmaster:8088/proxy/application_1403886045551_0003/
<html>
<h1>
The requested application exited before setting a tracking URL.
</h1>
</html>

1 REPLY 1

Re: failed 1 times due to AM Container - Does not MapReduce

Expert Contributor
Can you export the below environment variables and see if the issue gets resolved...
export HADOOP_MAPRED_HOME=<mapred loc>
export HADOOP_COMMON_HOME=<common loc>
export HADOOP_HDFS_HOME=<hdfs loc>
export YARN_HOME=<yarn loc>
export HADOOP_CONF_DIR=<conf loc>
export YARN_CONF_DIR=$HADOOP_CONF_DIR

Make sure that you export these variables before you run ResourceManager, NodeManager
and the client.

Make sure you add export variables in the file $hadoop_home/etc/hadoop/yarn-env.sh

Thanks
Em Jay
Don't have an account?
Coming from Hortonworks? Activate your account here