Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

yarn java configuration issue

New Contributor

I've built a new cluster and all seems right but yarn/mapreduce jobs won't run. Doing a simple wordcount I get...


17/09/05 22:44:21 INFO client.RMProxy: Connecting to ResourceManager at
17/09/05 22:44:22 INFO input.FileInputFormat: Total input paths to process : 1
17/09/05 22:44:22 INFO mapreduce.JobSubmitter: number of splits:8
17/09/05 22:44:22 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1504648306083_0003
17/09/05 22:44:22 INFO mapreduce.JobSubmitter: Cleaning up the staging area /user/yarn/.staging/job_1504648306083_0003
java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext.setAMContainerResourceRequests(Ljava/util/List;)V
at org.apache.hadoop.mapred.YARNRunner.createApplicationSubmissionContext(
at org.apache.hadoop.mapred.YARNRunner.submitJob(
at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(
at org.apache.hadoop.mapreduce.Job$



Can someone suggest where to look for I assume is a java issue? Thanks in advance!


Master Guru
What CDH version is your installed cluster, and what version are you compiling/bundling with your application jar?

The method specifically that its trying to call on the client-side is a new one in CDH 5.12.0. However, given that its not finding that method yet referencing it, it appears that you may be bundling an older or newer (depending on what version your cluster runs) CDH/Hadoop dependencies with your application jar which is not a good idea (the platform provides these by default on its classpath).

Does an inbuilt example work normally? Try with:

hadoop org.apache.hadoop.examples.WordCount <in-dir> <out-dir>

P.s. Ensure you use and reference CDH dependencies in your project for Apache Hadoop (hadoop-client), not the upstream ones. The guide to do this is at


Hi Harsh,


we are using CDH 5.12.2 and facing the same issue while executing the sqoop import job and also tried the same  example as you mentioned below. Below example also didn't work and got the same error. 


hadoop org.apache.hadoop.examples.WordCount <in-dir> <out-dir> 



Is there any workaround for this issue? Please let me know. 



Sandeep. v

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.