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 Plain View
MapReduce >> mail # user >> 0.21.0 API


+
Martin Becker 2010-09-22, 13:52
Copy link to this message
-
Re: 0.21.0 API
Hi Martin,

Neither Tool nor ToolRunner is deprecated in 0.21.0. I don't think
they have ever been deprecated. You should be able to use them without
problems.

Tom

On Wed, Sep 22, 2010 at 6:52 AM, Martin Becker <[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to move to Hadoop MapReduce 0.21.0.
> The corresponding tutorial still uses Tool and ToolRunner.
> Yet both are deprecated. What would be the correct way to implement,
> configure and submit a Job now? I was thinking in terms of:
>     Configuration configuration = new Configuration();         Cluster
> cluster = new Cluster(configuration);     Job job > Job.getInstance(cluster);
>     job.setJarByClass(WordCount.class);     job.setMapperClass(Map.class);
>     job.setCombinerClass(Reduce.class);
> job.setReducerClass(Reduce.class);     job.setOutputKeyClass(Text.class);
>     job.setOutputValueClass(IntWritable.class);
>     FileInputFormat.addInputPath(job, new Path(INPUT));
> FileOutputFormat.setOutputPath(job, new Path(OUTPUT));
>     System.exit(job.waitForCompletion(true) ? 0 : 1); Thanks in advance,
> Martin
>
+
Martin Becker 2010-09-22, 14:32
+
Martin Becker 2010-09-22, 15:45
+
Martin Becker 2010-09-22, 15:52
+
Tom White 2010-09-22, 16:11
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