Martin Becker 2010-09-22, 13:52
Tom White 2010-09-22, 14:08
Martin Becker 2010-09-22, 14:32
Martin Becker 2010-09-22, 15:45
Martin Becker 2010-09-22, 15:52
I think this is because the whole package is deprecated on the
MapReduce side (in package-info.java). I've opened
https://issues.apache.org/jira/browse/MAPREDUCE-2084 to address this.
In the meantime, it is safe to use Tool and ToolRunner.
On Wed, Sep 22, 2010 at 8:52 AM, Martin Becker <[EMAIL PROTECTED]> wrote:
> so the same package in both jars is not the problem. Should have known that.
> I do not know why this happens. Any ideas?
> On 22.09.2010 17:45, Martin Becker wrote:
>> Tom, thanks for your answer.
>> OK, so the problem is, that when I add both hadoop-common-0.21.0.jar AND
>> hadoop-mapred-0.21.0.jar to the class path, the Tool interface is marked
>> deprecated by Eclipse. This seems odd. Only having hadoop-common-0.21.0.jar
>> in the class path works fine. Both jars define classes in the package
>> org.apache.hadoop.util where the Tool interface is located. Could this be
>> the problem? I am a little clueless here and not sure whether this is a
>> problem that should be further addressed in this mailing list.
>> Thanks in advance,
>> On 22.09.2010 16:08, Tom White wrote:
>>> 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
>>> On Wed, Sep 22, 2010 at 6:52 AM, Martin Becker<[EMAIL PROTECTED]>
>>>> 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);
>>>> FileInputFormat.addInputPath(job, new Path(INPUT));
>>>> FileOutputFormat.setOutputPath(job, new Path(OUTPUT));
>>>> System.exit(job.waitForCompletion(true) ? 0 : 1); Thanks in advance,