Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> new api, reducer not getting called


Copy link to this message
-
Re: new api, reducer not getting called
Check if you are running into this simple issue of not having used
@Override annotations (Iterable vs. Iterator):

http://search-hadoop.com/m/fBRyn1rUldW1

On Sun, Jul 31, 2011 at 6:52 AM, web service <[EMAIL PROTECTED]> wrote:
> Hi,
>    I am trying out the new api and it doesn't execute the Reducer.. not sure
> why it is so.
>
> code snippet:
>
> [code]
> Job job = new Job();
>                 job.setJarByClass(HdpTest.class);
>                 FileInputFormat.addInputPath(job, new Path("input"));
>                 FileOutputFormat.setOutputPath(job, new Path("output"));
>                 job.setMapperClass(HdpTest.Map.class);
>                 job.setReducerClass(HdpTest.Reduce.class);
>                 job.getConfiguration().set("mapred.job.tracker", "local");
>                 job.waitForCompletion(true);
> [/code]
>
> am i missing something ? I am executing it within eclipse.
>

--
Harsh J
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB