The MR1 configuration is 'mapred.job.tracker', not
'mapreduce.jobtracker.address' (this is a newer name understood only
by MR in 2.x). Without the former, if you target an MR1 runtime, the
job will evaluate the default of 'mapred.job.tracker' as 'local' and
run a local job.

If your confusion is after following the given page at
then please see the note at the bottom of
In Hadoop 2.0.0 and later (MRv2), a number of Hadoop and HDFS
properties have been deprecated. (The change dates from Hadoop 0.23.1,
on which the Beta releases of CDH4 were based). A list of deprecated
properties and their replacements can be found on the Apache
Deprecated Properties page.
Note: All of these deprecated properties continue to work in MRv1.
Conversely the new mapreduce* properties listed do not work in MRv1.
On Sun, May 11, 2014 at 5:22 AM, Tony Dean wrote:

I am trying to write a Java application that works with either MR1 and MR2.
At the present I have MR2 (YARN) implementation deployed and running. I am
using mapred API. I believe that I read mapred and mapreduce APIs are
compatible so either should work. The only thing that is different is the
configuration properties that need to be specified depending on whether the
back-end is MR1 or MR2. BTW: I’m using CDH 4.6 (Hadoop 2.0).

My problem is that I can’t seem to submit a job to the cluster. It always
runs locally. I setup JobConf with appropriate properties and submit the
jobs using JobClient. The properties that I set on JobConf are as follows:

mapreduce.jobtracker.address=host:port (I know this is for MR1, but I’m
trying everything)




The last 2 are the same but I read 2 different ways to set it in different
conflicting documentations.

Anyway, can someone explain how to get this seemingly simple deployment to
work? What am I missing?


Harsh J


You received this message because you are subscribed to the Google Groups "CDH Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cdh-user+unsubscribe@cloudera.org.
For more options, visit https://groups.google.com/a/cloudera.org/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcdh-user @
postedMay 11, '14 at 6:35a
activeMay 11, '14 at 6:35a

1 user in discussion

Harsh J: 1 post



site design / logo © 2021 Grokbase