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 E20199ED5 for ; Fri, 20 Jan 2012 02:25:19 +0000 (UTC) Received: (qmail 79071 invoked by uid 500); 20 Jan 2012 02:25:19 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 79008 invoked by uid 500); 20 Jan 2012 02:25:19 -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 78998 invoked by uid 99); 20 Jan 2012 02:25:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2012 02:25:19 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Fri, 20 Jan 2012 02:25:12 +0000 Received: by qcsp14 with SMTP id p14so53632qcs.6 for ; Thu, 19 Jan 2012 18:24:51 -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=rt2kXnEaWB3nx1rLlcEnuTcq2rhsAajm+qu+5trWKjY=; b=L6nC0Vol/jban+KuVLxDlJUiPuBloSvNbRfoiPcZFa6eumZvMSumiZhYJL5i6Fu3C/ Nz9EUoqHBF7YYzG0Fy06tEXnTgWxActFnKxd6f/h3cj/igkZ7AbQ+ej9GaG3gtHZmjaf JuVAE7boY/Q0Nn1O8R/TpNoFEG3CStIG7p0Ng= MIME-Version: 1.0 Received: by 10.229.75.140 with SMTP id y12mr9518188qcj.73.1327026291502; Thu, 19 Jan 2012 18:24:51 -0800 (PST) Received: by 10.229.135.8 with HTTP; Thu, 19 Jan 2012 18:24:51 -0800 (PST) In-Reply-To: References: <1326770418572-3665088.post@n3.nabble.com> Date: Thu, 19 Jan 2012 18:24:51 -0800 Message-ID: Subject: Re: hadoop's attempt directory logs From: Eric Yang To: chukwa-user@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The logger should set to INFO because the information are logged at INFO level. The increased severity level to ERROR filtered out all log entries from task attempts. Hope this helps. regards, Eric On Thu, Jan 19, 2012 at 6:13 PM, Abhijit Dhar w= rote: > I added this in my $HADOOP_CONF_DIR/log4j.properties > > log4j.appender.TLA=3Dorg.apache.hadoop.chukwa.inputtools.log4j.TaskLogApp= ender > log4j.appender.TLA.recordType=3DCrawlerLog > log4j.appender.TLA.taskId=3D${hadoop.tasklog.taskid} > log4j.appender.TLA.layout=3Dorg.apache.log4j.PatternLayout > log4j.appender.TLA.layout.ConversionPattern=3D%d{ISO8601} %p [%t] > [%c{5}.%M()]:: %m%n > > But, it looks like when I add this to the rootlogger > (log4j.rootLogger=3DERROR, stdout, TLA), it stops going through even my s= tdout > log appender. > Any idea, what might be going on? (chukwa jar is on my classpath, and I > don't see any ClassNotFound exception, so I think that part is good) > > Thanks, > > > > On Tue, Jan 17, 2012 at 6:03 PM, Eric Yang wrote: >> >> This can be setup by using TaskLogAppender that comes with Chukwa. >> In $HADOOP_CONF_DIR/log4j.properties, modify the TaskLogAppender >> configuration >> to: >> >> >> log4j.appender.TLA=3Dorg.apache.hadoop.chukwa.inputtools.log4j.TaskLogAp= pender >> >> Make sure chukwa-0.x.0-client.jar is in Hadoop class path, and restart >> Hadoop. >> >> This should enable Task Attempt Logs to be sent through Chukwa data >> collection system, and also log a copy locally on the task tracker >> node. =C2=A0Hope this is what you are looking for. >> >> regards, >> Eric >> >> On Mon, Jan 16, 2012 at 7:20 PM, Abhijit Dhar >> wrote: >> > Hi, >> > >> > Could you please point me how to stream the attempt logs that hadoop >> > generates to chukwa, while at the same time saving them the way hadoop >> > saves >> > by default under attempt directories/stdout ? >> > >> > Thanks a lot >> > >> > -- >> > View this message in context: >> > http://apache-chukwa.679492.n3.nabble.com/hadoop-s-attempt-directory-l= ogs-tp3665088p3665088.html >> > Sent from the Chukwa - Users mailing list archive at Nabble.com. > > > > > -- > =D0=90=D0=B1=D0=B8=D0=B6=D0=B8=D1=82 =D0=94=D0=B0=D1=80