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 240A6CB26 for ; Mon, 29 Jul 2013 11:18:59 +0000 (UTC) Received: (qmail 81579 invoked by uid 500); 29 Jul 2013 11:18:53 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 80583 invoked by uid 500); 29 Jul 2013 11:18:41 -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 80576 invoked by uid 99); 29 Jul 2013 11:18:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 11:18:40 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavan0591@gmail.com designates 209.85.219.47 as permitted sender) Received: from [209.85.219.47] (HELO mail-oa0-f47.google.com) (209.85.219.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 11:18:35 +0000 Received: by mail-oa0-f47.google.com with SMTP id m6so5711886oag.6 for ; Mon, 29 Jul 2013 04:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=//S2krrFdtkU2UyxuLKGYNxty9sljES13i8IOYrL1n4=; b=eIbE3Roq9l4n92I+FwOavj5bs0QULTzZEZtaXdcuwJ4kOVKqgOrWfWi+GiFiFj3IUo 8V90ItU7tNWHs9EFir2FYUDCmUAvUJQV85sdHQ032Mjh9OxgRNIXskGJF+Gml5CtD77c cuMrQ3n6wfJL84jtZohwg5tLrNpfUj6RhQBTjImKxex38jgLc0I+d8FtAH6nRmjIxkhs 0tq/0b1Z7zJ0CU7QwgAa2f+wxqIoMdmVLNkyuHwtsDxMUi885pBHugncKk4DbN6LaJqU 9Aa77A4Ve/a+MNMnkWe7u0tYbWY8Yns5DQpA6R7KlOqc3BTFBg022FBuluFpogflpJHq xG1g== MIME-Version: 1.0 X-Received: by 10.182.46.230 with SMTP id y6mr51644029obm.79.1375096694736; Mon, 29 Jul 2013 04:18:14 -0700 (PDT) Received: by 10.182.102.41 with HTTP; Mon, 29 Jul 2013 04:18:14 -0700 (PDT) Date: Mon, 29 Jul 2013 16:48:14 +0530 Message-ID: Subject: Cannot write the output of the reducer to a sequence file From: Pavan Sudheendra To: user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I have a Map function and a Reduce funtion outputting kep-value pairs of class Text and IntWritable.. This is just the gist of the Map part in the Main function : TableMapReduceUtil.initTableMapperJob( tablename, // input HBase table name scan, // Scan instance to control CF and attribute selection AnalyzeMapper.class, // mapper Text.class, // mapper output key IntWritable.class, // mapper output value job); And here's my Reducer part in the Main function which writes the output to HDFS job.setReducerClass(AnalyzeReducerFile.class); job.setNumReduceTasks(1); FileOutputFormat.setOutputPath(job, new Path("hdfs://localhost:54310/output_file")); How do i make the reducer write to a Sequence File instead? I've tried the following code but doesn't work job.setReducerClass(AnalyzeReducerFile.class); job.setNumReduceTasks(1); job.setOutputFormatClass(SequenceFileOutputFormat.class); SequenceFileOutputFormat.setOutputPath(job, new Path("hdfs://localhost:54310/sequenceOutput")); Any help appreciated! -- Regards- Pavan