Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E150F63E for ; Fri, 31 May 2013 16:06:03 +0000 (UTC) Received: (qmail 22324 invoked by uid 500); 31 May 2013 16:05:58 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 22251 invoked by uid 500); 31 May 2013 16:05:57 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 22229 invoked by uid 99); 31 May 2013 16:05:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 16:05:57 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens.scheidtmann@gmail.com designates 209.85.214.181 as permitted sender) Received: from [209.85.214.181] (HELO mail-ob0-f181.google.com) (209.85.214.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 May 2013 16:05:52 +0000 Received: by mail-ob0-f181.google.com with SMTP id 16so3386783obc.12 for ; Fri, 31 May 2013 09:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=AU/xMrNBbQshQi7Wv/RNBOO2O61UvLvelJn5RpB8Do0=; b=Jna0pe7lhKAchlDc2ap2UitlFoCXclSGwZdwacaxMzI0GMbusdv66mCIQYdS8g8vXe sIK3NR6n1EEajo67LK5kZgYjZ2hOsJuQUX7S9pK42O6moPGhLl3a58fMYT5JR4qgrVT5 xJYczOJ3Ur1Z0FlXxv/ilObZRfMH2aRB81yg7HTka253qszLcFbssu0QBrF1NDTcYKBN qwgxquSEsJz7agUYciqlxafg2LZ3sEIKWtatuol/5e2OwqfOphOJMbRzjZfgQmoVA27l iDI3RAXNVZCOVIRY04Xtf/MvKGgGNjnKGIkUvD83D7r09ayc069lygfTXqi8TLSwvJRx GxmQ== MIME-Version: 1.0 X-Received: by 10.182.236.104 with SMTP id ut8mr6106651obc.75.1370016331420; Fri, 31 May 2013 09:05:31 -0700 (PDT) Received: by 10.60.141.9 with HTTP; Fri, 31 May 2013 09:05:31 -0700 (PDT) In-Reply-To: References: Date: Fri, 31 May 2013 18:05:31 +0200 Message-ID: Subject: Re: Types and SequenceFiles From: Jens Scheidtmann To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11c31838c55c2d04de05c8ad X-Virus-Checked: Checked by ClamAV on apache.org --001a11c31838c55c2d04de05c8ad Content-Type: text/plain; charset=ISO-8859-1 Dear Harsh, thanks for your answer. Your post talks about the intermediate and final result types. These are already configured in my job as: job.setOutputKeyClass(IntWritable.class); job.setOutputValueClass(IntWritable.class); My problem was input key and value types, though. Your post let me look in the right direction. I added job.setInputFormatClass(SequenceFileInputFormat.class); which did the trick.I thought this would be done by the SequenceFileAsBinaryInputFormat.addInputPath(jobConf, new Path(args[i])); Best regards, Jens --001a11c31838c55c2d04de05c8ad Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Harsh,


thanks for your answer. Your post talks about the intermediate and final = result types.
These are already configured in my job as:
=A0=A0=A0 =A0=A0=A0 job.setOutputKeyClass(IntWritable.class);
=A0=A0=A0 = =A0=A0=A0 job.setOutputValueClass(IntWritable.class);

My probl= em was input key and value types, though.
Your post let me look in the right direction. I added

=A0=A0=A0 =A0=A0=A0 job.setInputFormatClass(SequenceFileInputFormat.cla= ss);

which did the trick.I thought = this would be done by the

=A0=A0 = =A0 SequenceFileAsBinaryInputFormat.addInputPath(jobConf, new Path(args[i])= );

Best regards,

Jens
--001a11c31838c55c2d04de05c8ad--