Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 65434 invoked from network); 16 Nov 2010 00:07:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 00:07:17 -0000 Received: (qmail 45536 invoked by uid 500); 16 Nov 2010 00:07:40 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 45485 invoked by uid 500); 16 Nov 2010 00:07:40 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 45477 invoked by uid 99); 16 Nov 2010 00:07:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 00:07:40 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prvs=929b6fd6e=akhaled@utdallas.edu designates 129.110.20.112 as permitted sender) Received: from [129.110.20.112] (HELO ip-relay-002.utdallas.edu) (129.110.20.112) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 00:07:31 +0000 X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.59,202,1288587600"; d="scan'208,217";a="43804941" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-002.utdallas.edu with ESMTP; 15 Nov 2010 18:07:10 -0600 Received: from [192.168.1.4] (ws23-158.aiken.dynamic.msstate.edu [130.18.158.23]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 9F3734E75A for ; Mon, 15 Nov 2010 18:07:10 -0600 (CST) Message-Id: <569A0069-064D-4A7F-87D7-F757F4FE9A61@utdallas.edu> From: Arindam Khaled To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=Apple-Mail-1-173629717 Mime-Version: 1.0 (Apple Message framework v936) Subject: wrong value class error Date: Mon, 15 Nov 2010 18:05:58 -0600 X-Mailer: Apple Mail (2.936) --Apple-Mail-1-173629717 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hello, I am new to Hadoop and I think I'm doing something silly. I sent this e-mail from another account which isn't registered to hadoop user group. I am getting the following error in my reducer. 10/11/15 15:29:11 WARN mapred.LocalJobRunner: job_local_0001 java.io.IOException: wrong value class: class org.apache.hadoop.io.Text is not class org.apache.hadoop.io.IntWritable Here is my reduce class: public static class BFIDAReducer extends Reducer { private Text result = new Text(); public void reduce(Text key, Iterable values, Context context ) throws IOException, InterruptedException { Text result = new Text(); GameFunctions gf = GameFunctions.getInstance(); String line = ""; for(IntWritable val: values) { line = line + val.toString() + ","; } if(line.length() > 1) line = (String) line.subSequence(0, line.length() - 1); if (gf.isSolved(key.toString(), size)) solved = true; result.set(line); context.write(key, result); } } And here is my partial code from job configuration: job.setOutputKeyClass(Text.class); job.setOutputValueClass(Text.class); job.setMapOutputKeyClass(Text.class); job.setMapOutputValueClass(IntWritable.class); Can anyone help me? I know I'll have more question in near future. Thanks in advance. Arindam --Apple-Mail-1-173629717--