Return-Path: X-Original-To: apmail-incubator-chukwa-user-archive@www.apache.org Delivered-To: apmail-incubator-chukwa-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 41CF97F08 for ; Sun, 11 Dec 2011 04:15:13 +0000 (UTC) Received: (qmail 19125 invoked by uid 500); 11 Dec 2011 04:15:11 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 18986 invoked by uid 500); 11 Dec 2011 04:15:09 -0000 Mailing-List: contact chukwa-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: chukwa-user@incubator.apache.org Delivered-To: mailing list chukwa-user@incubator.apache.org Received: (qmail 18979 invoked by uid 99); 11 Dec 2011 04:15:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 04:15:07 +0000 X-ASF-Spam-Status: No, hits=-0.6 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 eric818@gmail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qy0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Dec 2011 04:15:01 +0000 Received: by qcqw6 with SMTP id w6so2917643qcq.6 for ; Sat, 10 Dec 2011 20:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Y+Atn5D14Z+8KX8YXR1zZ5FOPfL7a4b0D5CkcTaf0q8=; b=YVERI3PzJlLTisAgIBIAlcfm6k85STSdS0P33gpj5lHBnhLAu9QeqIqfnQKRsCMNHh /VxyejH37LzslL0KQ+BLASjBjDXI5BlSJAiR7QJSdlgImwHdHESvaejHAeYrL0Tr5j28 LHc6mBXCzIkZyslqLR2TtV+2ZV5/2Kyh8csV8= MIME-Version: 1.0 Received: by 10.229.100.226 with SMTP id z34mr3315066qcn.27.1323576878876; Sat, 10 Dec 2011 20:14:38 -0800 (PST) Received: by 10.229.247.196 with HTTP; Sat, 10 Dec 2011 20:14:38 -0800 (PST) In-Reply-To: References: Date: Sat, 10 Dec 2011 20:14:38 -0800 Message-ID: Subject: Re: debug Error saving Chunk From: Eric Yang To: chukwa-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable You can change the log.info line to: log.error(ExceptionUtil.getStackTrace(e)); This should show the stack trace. e.printStackTrace() should have been recorded in syslog section of the mapreduce job. Note, syslog in this case is not referring to OS syslog subsystem but the log file that you can see when you click on task attempts. regards, Eric On Sat, Dec 10, 2011 at 7:38 PM, AD wrote: > It looks like its happening in my collect method in my OutputCollector bu= t > not seeing any stack trace. =A0I put some debug logging in AbstractProces= sor > and its failing here > > =A0while (hasNext()) { > =A0 =A0 =A0 try { > =A0 =A0 =A0 =A0 parse(nextLine(), output, reporter); > =A0 =A0 =A0 } catch (Throwable e) { > =A0 =A0 =A0 =A0 log.info("Error parsing...."); > =A0 =A0 =A0 =A0 e.printStackTrace(); > =A0 =A0 =A0 =A0 saveChunkInError(e); > =A0 =A0 =A0 } > > I see "Error parsing" and i can trace everything working in parse() up to > the line output.collect() so i imagine is failing there but not seeing an= y > stacktrace.... > > Is there a way to get all stderr/stdout to one logfile? > > > > On Sat, Dec 10, 2011 at 10:21 PM, Eric Yang wrote: >> >> In Mapreduce framework, everything that uses System.out or System.err >> are redirected automatically to syslog. >> You shouldn't need to do anything special. >> >> regards, >> Eric >> >> On Sat, Dec 10, 2011 at 7:07 PM, AD wrote: >> > I have a custom processor in extraction/demux/processor/mapper do I ne= ed >> > to >> > print something custom to stderr from there ? >> > >> > >> > On Sat, Dec 10, 2011 at 4:32 PM, Eric Yang wrote: >> >> >> >> Hi AD, >> >> >> >> The stack trace is output to stdout of the mapreduce job. =A0Hence, >> >> check the syslog file for the mapreduce job to find the actual cause >> >> of the problem. =A0Hope this helps. >> >> >> >> regards, >> >> Eric >> >> >> >> On Sat, Dec 10, 2011 at 1:23 PM, AD wrote: >> >> > i am seeing the following error : >> >> > >> >> > 2011-12-10 16:21:43,886 WARN btpool0-1 ChunkSaver - Unable to save = a >> >> > chunk: >> >> > tags: =A0testcluster - source:lilmac.home >> >> > >> >> > Is there a way to turn on more debugging to find out why? >> > >> > > >