Return-Path: Delivered-To: apmail-hadoop-general-archive@minotaur.apache.org Received: (qmail 43397 invoked from network); 5 Jul 2010 07:34:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jul 2010 07:34:56 -0000 Received: (qmail 59415 invoked by uid 500); 5 Jul 2010 07:34:56 -0000 Delivered-To: apmail-hadoop-general-archive@hadoop.apache.org Received: (qmail 59106 invoked by uid 500); 5 Jul 2010 07:34:52 -0000 Mailing-List: contact general-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@hadoop.apache.org Delivered-To: mailing list general@hadoop.apache.org Received: (qmail 59098 invoked by uid 99); 5 Jul 2010 07:34:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 07:34:51 +0000 X-ASF-Spam-Status: No, hits=2.9 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.212.48] (HELO mail-vw0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jul 2010 07:34:44 +0000 Received: by vws19 with SMTP id 19so8353576vws.35 for ; Mon, 05 Jul 2010 00:34:22 -0700 (PDT) Received: by 10.220.58.74 with SMTP id f10mr1308515vch.86.1278315262222; Mon, 05 Jul 2010 00:34:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.17.134 with HTTP; Mon, 5 Jul 2010 00:34:02 -0700 (PDT) In-Reply-To: References: <447928.62922.qm@web46311.mail.sp1.yahoo.com> From: Aaron Kimball Date: Mon, 5 Jul 2010 00:34:02 -0700 Message-ID: Subject: Re: Displaying Map output in MapReduce To: general@hadoop.apache.org Content-Type: multipart/alternative; boundary=00235445b87e1da17d048a9ef72c X-Virus-Checked: Checked by ClamAV on apache.org --00235445b87e1da17d048a9ef72c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If you set the number of reduce tasks to zero, the outputs of the mappers will be sent directly to the OutputFormat. You can debug your map phase of = a job by disabling reduce and inspecting the mapper outputs, and then re-enable the reducer after you've got the mapping part of the job running correctly. -- Aaron On Fri, Jul 2, 2010 at 10:10 AM, Ted Yu wrote: > Minor correction - port is 50075: > http://10.32.56.159:50075/logs/userlogs/ > > On Fri, Jul 2, 2010 at 12:32 AM, Alberto Luengo Cabanillas < > cabiwan@gmail.com> wrote: > > > Hi! Supposing that you=B4re using a virtualized environment, you should= be > > able to get to JobTracker Web Admin Interface from http:// > > > machine_ip>:50070/logs/userlogs. In case you=B4re running Hadoop from > inside > > a > > cluster frontend, use this machine=B4s IP. Inside this directory, it wi= ll > > exist another one called "userlogs" where you will see all map and redu= ce > > tasks launch by the JobTracker and the TaskTrackers. These tasks will > look > > like 'job_[m,r]_0_xxxxxx' (or similar). Inside of every one of them the= re > > will be three subdirectories (stdout, stdlog and stderr) which will > contain > > all your debugging messages. > > Inside my MapReduce development programs I use the Java *LOG* class in = a > > sentence like this: > > > > private static final Log LOG =3D > > LogFactory.getLog(.class.getName()); > > LOG.info("***********INSIDE MY REDUCER SETUP**********"); > > > > Besides these messages, a normal "System.out.println(...)" will also > appear > > in the above directories. > > > > Hope it helps! > > > > 2010/7/2 abc xyz > > > > > Hi folks, > > > > > > I want to just display the output of my mapper on console or want to > log > > it > > > in > > > some file. System.out.println and Log4j's logger are not displaying t= he > > > output. > > > How can I see the intermediate results? > > > > > > Cheers > > > > > > > > > > > > > > > > > > > > > > > -- > > Alberto > > > --00235445b87e1da17d048a9ef72c--