Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 58263 invoked from network); 9 Nov 2008 04:45:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2008 04:45:30 -0000 Received: (qmail 10734 invoked by uid 500); 9 Nov 2008 04:45:32 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 10685 invoked by uid 500); 9 Nov 2008 04:45:32 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 10674 invoked by uid 99); 9 Nov 2008 04:45:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Nov 2008 20:45:32 -0800 X-ASF-Spam-Status: No, hits=4.1 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [202.43.219.9] (HELO web8315.mail.in.yahoo.com) (202.43.219.9) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 09 Nov 2008 04:44:10 +0000 Received: (qmail 64918 invoked by uid 60001); 9 Nov 2008 04:44:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=Ftze8ogAwh6PfjGHUt3L27bysk7I5Q28nDJebaGT32oMYKQi6eKl8ynskFuOpy8g2Y0oBJiZl1n7CoANSRzVMJ9p4QfCxl2lpbd/J6pi9+P7Be5WRrpzJMClR5EP1hIxpTxxmxwnvQ13EV6ToyHAlZ6xGjG+849wze5R1iz9QL8=; X-YMail-OSG: Z0zbwgcVM1lggA.97SyjFFvrU5itedMBiGHZpwwp0wAlBcZY9AX1FinxHFb16uypuDUl1jBSLo_mfgSYiqif1sNw.pU7UMA1KXKOOyscu6Hcoct6mzeiIum9NllgHAIcd_KXAb89KQiBdv3lNTdk7.tcICUKBMXKZ3nzgSIzM4OhZq0xVbFdyc6ino7O Received: from [128.82.9.18] by web8315.mail.in.yahoo.com via HTTP; Sun, 09 Nov 2008 10:14:49 IST X-Mailer: YahooMailRC/1155.20 YahooMailWebService/0.7.260.1 Date: Sun, 9 Nov 2008 10:14:49 +0530 (IST) From: pols cut Subject: error with inout for the Reduce method To: core-user@hadoop.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-30535286-1226205889=:64717" Message-ID: <692275.64717.qm@web8315.mail.in.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-30535286-1226205889=:64717 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I am trying to get a simple map reduce function going but getting the fo= llowing error. could anyone please help/guide me =0A=0Afilename.java is not= abstract and does not override abstract method reduce,org.apache.hadoop.mapred.Outpu= tCollector in = org.apache.hadoop.mapred.Reducer=0Apublic static class Reduce extends MapRe= duceBase implements Reducer=0A=0A=0AMy Map method is l= ike this:=0Apublic static class map extends MapReduceBase implements Mapper= =0A {=0Apublic void map(LongWritable key= , Text value, OutputCollector output, Reporter reporter) throws= IOException=0A {=0A output.collect(word_key,new Text(str1)); //out= put.collect(Text,Text)=0A=0A }=0A =0A }=0A=0Apublic st= atic class Reduce extends MapReduceBase implements Reducer=0A {=0A=0A public void Reduce(Text key, Iterator values= , OutputCollector output, Reporter reporter) throws IOException= =0A {=0A output.collect(new Text("Test"), new Text("Me")= );=0A=0A }=0A }=0A=0Aconfiguration is like :=0A=0A conf.setMa= pOutputKeyClass(Text.class);=0A conf.setMapOutputValueClass(Text.cla= ss);=0A conf.setOutputKeyClass(Text.class);=0A conf.setOutput= ValueClass(Text.class);=0A=0A conf.setMapperClass(map.class);=0A = conf.setCombinerClass(Reduce.class);=0A conf.setReducerClass(Red= uce.class);=0A=0A conf.setInputFormat(TextInputFormat.class);=0A = conf.setOutputFormat(TextOutputFormat.class);=0A=0A=0A Add more fr= iends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ --0-30535286-1226205889=:64717--