Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 61586 invoked from network); 22 Nov 2010 16:43:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 16:43:00 -0000 Received: (qmail 26030 invoked by uid 500); 22 Nov 2010 16:43:29 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 25970 invoked by uid 500); 22 Nov 2010 16:43:28 -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 25957 invoked by uid 99); 22 Nov 2010 16:43:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:43:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of matt.tanquary@gmail.com designates 209.85.160.176 as permitted sender) Received: from [209.85.160.176] (HELO mail-gy0-f176.google.com) (209.85.160.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Nov 2010 16:43:24 +0000 Received: by gyh4 with SMTP id 4so1385217gyh.35 for ; Mon, 22 Nov 2010 08:43:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=MP3TtMjcrv2TpVLfxvOmlkLezqF5mfL4CGfxuV1C1qY=; b=xrkZZj1agyT9zImnLHGHEjPivKzDvjmbX1gFsnUX8rvoPmC4+0RupwXqAI8RizG7+L /U6PuDu2KtD4JaTUefMAiWYt87YEzGe3apt3QOoKJ0mf5e6GcLpBm08Q6zSlvPgez1HF i4Dxe7Qk2bsSSzsMo8H0zebbZV7fzf1yBjxKE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ULHA/0FdPiOrA07/16TNyksZWYPTSYeddgp0uJZLL8b/ySFruX3TZIdmPent77LHKg kUo4cqfs+IgQXrv0zWMNYKElugqVA9PBmToVbxSdS8/ZWzLOBt8j1zvt1wHBXOxYW/P6 pOFsNnwk+RSdLjWeybqVWkrIDN2WdADs+nbk8= MIME-Version: 1.0 Received: by 10.100.208.11 with SMTP id f11mr855154ang.93.1290444182543; Mon, 22 Nov 2010 08:43:02 -0800 (PST) Received: by 10.42.7.17 with HTTP; Mon, 22 Nov 2010 08:43:02 -0800 (PST) Date: Mon, 22 Nov 2010 09:43:02 -0700 Message-ID: Subject: Cannot find MultipleOutputs files From: Matt Tanquary To: common-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016e6d27bd91a5fdb0495a6f326 --0016e6d27bd91a5fdb0495a6f326 Content-Type: text/plain; charset=ISO-8859-1 I am trying to implement MultipleOutputs (the new API). I have done the following: Added the following to my Tool run() method: MultipleOutputs.addNamedOutput(sortJob, "l1n1", TextOutputFormat.class, NullWritable.class, Text.class); MultipleOutputs.addNamedOutput(sortJob, "l1n2", TextOutputFormat.class, NullWritable.class, Text.class); Here's my reducer: static class FinalSortReducer extends Reducer { private MultipleOutputs mos; public void setup(Context context) { mos = new MultipleOutputs(context); } public void reduce(TextTriplet key, Iterable values, Context context) throws IOException, InterruptedException { Text out = new Text(); for (IntWritable val : values) { context.getCounter(TotalCounter.ITEM).increment(1); out.set(key.getThird() + "\t" + key.getSecond()); if (key.getFirst().toString().equals("l1n1")) { //mos.write(NullWritable.get(), out, key.getFirst().toString()); mos.write("l1n1", NullWritable.get(), key.getThird() + "\t" + key.getSecond()); //logger.info("Wrote: " + key.toString()); }else if (key.getFirst().toString().equals("l1n2")) { //mos.write(NullWritable.get(), out, key.getFirst().toString()); mos.write("l1n2", NullWritable.get(), key.getThird() + "\t" + key.getSecond()); //logger.info("Wrote: " + key.toString()); } else { context.write(NullWritable.get(), out); } } } public void cleanup(Context context) throws IOException, InterruptedException { mos.close(); } } Once the job is finished, I end up with nothing in my output path although statistics show that my reducer output 83 records. The only thing found in my output path is '_logs' folder. I have searched up and down the folder tree to see if maybe the outputs are somewhere else, but have not been able to find the output. Any idea about what I might be doing wrong? Thanks! -M@ -- Have you thanked a teacher today? ---> http://www.liftateacher.org --0016e6d27bd91a5fdb0495a6f326--