Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 484D6279E for ; Tue, 3 May 2011 22:09:22 +0000 (UTC) Received: (qmail 91011 invoked by uid 500); 3 May 2011 22:09:21 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 90960 invoked by uid 500); 3 May 2011 22:09:21 -0000 Mailing-List: contact mapreduce-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-user@hadoop.apache.org Delivered-To: mailing list mapreduce-user@hadoop.apache.org Received: (qmail 90952 invoked by uid 99); 3 May 2011 22:09:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 22:09:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.97.132.5] (HELO homiemail-a38.g.dreamhost.com) (208.97.132.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2011 22:09:13 +0000 Received: from homiemail-a38.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTP id 89A0210AFAA for ; Tue, 3 May 2011 15:08:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=darose.net; h=message-id:date :from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=darose.net; b= NdfA++J4+aiB678For+LsmKyIJ33INxYs+KJyh6NQ9v8BPh3L/jBceu6HHYLhBdo c9hQ7bWXpvYEiVjvTm56k7DFCsjrJf8RPDICwfHjaBlaqVAygL3Ffq024zh53bct 5sSKSn7ryPa7difiLDyKqMENdYJrxkd7MSMfwonfkm0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=darose.net; h=message-id :date:from:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; s=darose.net; bh=4v3gPe UEuP0lfcHhc2wxsnm0B7w=; b=I+qz90dgpTC5sWFDf5oI6PaQbujfYTDFpnGED2 2Ki/dmkoeQcSosTsKhKAhMMjPPRH6eO9cukZhLE+J/e+nAqIvrJ2he2Sk8PAa1Bz tHdfHpe0pNRLfJwQKOpR7+ocVf4B9gLkt3owlUoXLChJOH95aNH1MF7HpUHxeEuv my0/s= Received: from darsys12 (cpe-66-108-142-190.nyc.res.rr.com [66.108.142.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: darose@darose.net) by homiemail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 5E00910AFA5 for ; Tue, 3 May 2011 15:08:52 -0700 (PDT) Received: from [10.1.0.2] by darsys12 with esmtp (Exim 4.74) (envelope-from ) id 1QHNlz-0005K1-5W for mapreduce-user@hadoop.apache.org; Tue, 03 May 2011 18:08:51 -0400 Message-ID: <4DC07CF2.7050106@darose.net> Date: Tue, 03 May 2011 18:08:50 -0400 From: David Rosenstrauch User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110429 Thunderbird/3.1.10 MIME-Version: 1.0 To: mapreduce-user@hadoop.apache.org Subject: Re: Three Questions References: <4DC067E8.8010101@darose.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 05/03/2011 05:49 PM, Geoffry Roberts wrote: > David, > > Thanks for the response. > > Last thing first: > > I am using org.apache.hadoop.mapreduce.lib.output.MultipleOutputs > > which is differs from what your link points to > org.apache.hadoop.mapred.lib.MultipleOutputs. Using the class you propose, > requires me to use a number of other classes from the same package. These > used to be deprecated, but apparently are not any more. > > Question: Does my package even work? Must I use the other? My apologies, I sent you the wrong link. Should be this: http://hadoop.apache.org/mapreduce/docs/r0.21.0/api/org/apache/hadoop/mapreduce/lib/output/MultipleOutputs.html#addNamedOutput%28org.apache.hadoop.mapreduce.Job,%20java.lang.String,%20java.lang.Class,%20java.lang.Class,%20java.lang.Class%29 Point remains the same though: you need to call MultipleOutputs.addNamedOutput() to configure the named output before you can start writing to it. > So far as the logging goes, I didn't quite follow your response. You say > "You can find an individual map or reduce task's logs here:" but there is > no link. > > I am familiar with the drill down that starts by clicking NameNode > Logs/userlogs/job*/attempt*r*/stdout. Are you recommending something > different? I am. I wasn't recommending a specific link, but rather for you to click on links in one of your own M/R jobs in your Hadoop GUI. I.e.: * go to http::50030 * click on a job * click on (e.g.) the word "reduce" in the UI, which brings you to the "All Tasks" page ... etc. > btw, > > In my Reduce class, I have a System.out statement in the setup() method that > works (i.e. I get output.), but similar statements in the reduce() method > yield nada. System.out.println won't output to the job log like I'm describing above. (Plus you'll have no control over the logging level.) Using the logging framework is much preferred. HTH, DR