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 737A0972B for ; Thu, 5 Apr 2012 03:05:28 +0000 (UTC) Received: (qmail 14468 invoked by uid 500); 5 Apr 2012 03:05:28 -0000 Delivered-To: apmail-incubator-chukwa-user-archive@incubator.apache.org Received: (qmail 14322 invoked by uid 500); 5 Apr 2012 03:05:27 -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 14300 invoked by uid 99); 5 Apr 2012 03:05:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 03:05:27 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eric818@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-wg0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Apr 2012 03:05:19 +0000 Received: by wgbdr12 with SMTP id dr12so737323wgb.0 for ; Wed, 04 Apr 2012 20:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=LHzczLvHu0ib1Vx5UMyv3gBmKffU9xvg8qlYnRBj8YI=; b=bJqjI7Ffs76k+a/QNi+8vzydeAb4hxsx74n6EjXl+TUNcr5XPj1H8Wc/Z9WLmEGnA3 5aRWK8muN17UQPsj9M5P6GLm2aNfwgKoLvBVPBrL/2ty1zcu2pt0t5N7i3qx3dVUgo/B /B9KNrhR0bK/AwQRespAVJw29HvbeWTTmnQYPRgE95U566QlSbSiyYRvraNzAHRvdRlM SrwfOd5uelThPhGnyAPbdfw+ONm9bumd2EZKloH9JoXOULM65rqWWLeTHO/OkYn2248r rfDXHyhOZGJ8Osa/VbT4c2K1Wh2OTTzkvygL1Oea+00nTz9alwAxiifkkM6O81Yw52kM GIMw== MIME-Version: 1.0 Received: by 10.216.135.20 with SMTP id t20mr542365wei.99.1333595099089; Wed, 04 Apr 2012 20:04:59 -0700 (PDT) Received: by 10.216.29.20 with HTTP; Wed, 4 Apr 2012 20:04:59 -0700 (PDT) In-Reply-To: References: Date: Wed, 4 Apr 2012 20:04:59 -0700 Message-ID: Subject: Re: Hadoop metric are not collected on amazon EMR From: Eric Yang To: chukwa-user@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Which version of Hadoop are you using? This looks like a mismatch between how Chukwa calls DFS client, and Hadoop jar file. regards, Eric On Wed, Apr 4, 2012 at 1:43 AM, meena k.s wrote= : > Hi Eric, > > Regarding my earlier query, i see the following error message in > chukwa-collector.log > > =A0WARN main SeqFileWriter - Got an exception trying to rotate. Will try = again > in 300 seconds. > org.apache.hadoop.ipc.RemoteException: java.io.IOException: > java.lang.NoSuchMethodException: > org.apache.hadoop.hdfs.protocol.ClientProtocol.create(java.lang.String, > org.apache.hadoop.fs.permission.FsPermission, java.lang.String, boolean, > boolean, short, long) > =A0 =A0 =A0 =A0 at java.lang.Class.getMethod(Class.java:1605) > =A0 =A0 =A0 =A0 at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:557) > =A0 =A0 =A0 =A0 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java= :1388) > =A0 =A0 =A0 =A0 at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java= :1384) > =A0 =A0 =A0 =A0 at java.security.AccessController.doPrivileged(Native Met= hod) > =A0 =A0 =A0 =A0 at javax.security.auth.Subject.doAs(Subject.java:396) > Thanks, > Meena > > On Wed, Apr 4, 2012 at 1:33 PM, meena k.s wro= te: >> >> Hi Eric, >> >> Thanks for the quick reply.I have tried to install chukwa 0.5 accordingl= y. >> but there seems to be a problem while starting chukwa-collector. In the = log >> files i could see something related to hbase. I haven't installed any hb= ase >> in my cluster. Therefore I commented out the parameters related to hbase= in >> my chukwa-collector-conf.xml. Is it necessary to have a hbase installati= on >> for chukwa 0.5 to work. >> >> Thanks, >> Meena >> >> On Tue, Apr 3, 2012 at 9:36 PM, Eric Yang wrote: >>> >>> Hi Meena, >>> >>> Hadoop 0.20.205 and Chukwa 0.4 is a mismatch. =A0Hadoop 0.20.20x has >>> been modified to use MetricsSink instead of MentricsContext. >>> Therefore, you will not see Hadoop metrics by using Chukwa 0.4. =A0You >>> will need Chukwa 0.5 to monitor Hadoop 0.20.205+. =A0In addition, you >>> should copy hadoop-metrics2.properties to $HADOOP_CONF_DIR to monitor >>> Hadoop. =A0Hope this helps. >>> >>> regards, >>> Eric >>> >>> On Tue, Apr 3, 2012 at 3:33 AM, Meena K.S wrote= : >>> > Hi, >>> > >>> > >>> > >>> > We want to use chukwa for hadoop log collection. We are running hive >>> > queries on EMR. So for the purpose of experimenting with chukwa we >>> > configured chukwa on a 2 node EMR cluster. =A0The collector and the >>> > agent are running and also the system logs are generated but the >>> > hadoop mapred and rpc /jvm logs are not being generated. Chukwa >>> > version : 0.4 and the =A0hadoop version :0.20.205 >>> > >>> > >>> > >>> > My hadoop-metrics.properties is as below : >>> > >>> > >>> > # Licensed to the Apache Software Foundation (ASF) under one or more >>> > >>> > # contributor license agreements.=A0 See the NOTICE file distributed = with >>> > >>> > # this work for additional information regarding copyright ownership. >>> > >>> > # The ASF licenses this file to You under the Apache License, Version >>> > 2.0 >>> > >>> > # (the "License"); you may not use this file except in compliance wit= h >>> > >>> > # the License.=A0 You may obtain a copy of the License at >>> > >>> > # >>> > >>> > #=A0=A0=A0=A0 http://www.apache.org/licenses/LICENSE-2.0 >>> > >>> > # >>> > >>> > # Unless required by applicable law or agreed to in writing, software >>> > >>> > # distributed under the License is distributed on an "AS IS" BASIS, >>> > >>> > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or >>> > implied. >>> > >>> > # See the License for the specific language governing permissions and >>> > >>> > # limitations under the License. >>> > >>> > >>> > >>> > log4j.appender.chukwa.rpc.recordType=3DHadoopMetricsProcessor >>> > >>> > log4j.appender.chukwa.rpc.chukwaClientHostname=3Dlocalhost >>> > >>> > log4j.appender.chukwa.rpc.chukwaClientPortNum=3D9093 >>> > >>> > log4j.appender.chukwa.rpc.DatePattern=3D.yyyy-MM-dd >>> > >>> > log4j.appender.chukwa.rpc.layout=3Dorg.apache.log4j.PatternLayout >>> > >>> > log4j.appender.chukwa.rpc.layout.ConversionPattern=3D%d{ISO8601} %p %= c: >>> > %m%n >>> > >>> > log4j.appender.chukwa.rpc.Dir=3D/tmp/chukwa/log/metrics >>> > >>> > >>> > >>> > log4j.appender.chukwa.dfs.recordType=3DHadoopMetricsProcessor >>> > >>> > log4j.appender.chukwa.dfs.chukwaClientHostname=3Dlocalhost >>> > >>> > log4j.appender.chukwa.dfs.chukwaClientPortNum=3D9093 >>> > >>> > log4j.appender.chukwa.dfs.DatePattern=3D.yyyy-MM-dd >>> > >>> > log4j.appender.chukwa.dfs.layout=3Dorg.apache.log4j.PatternLayout >>> > >>> > log4j.appender.chukwa.dfs.layout.ConversionPattern=3D%d{ISO8601} %p %= c: >>> > %m%n >>> > >>> > log4j.appender.chukwa.dfs.Dir=3D/tmp/chukwa/log/metrics >>> > >>> > >>> > >>> > log4j.appender.chukwa.mapred.recordType=3DHadoopMetricsProcessor >>> > >>> > log4j.appender.chukwa.mapred.chukwaClientHostname=3Dlocalhost >>> > >>> > log4j.appender.chukwa.mapred.chukwaClientPortNum=3D9093 >>> > >>> > log4j.appender.chukwa.mapred.DatePattern=3D.yyyy-MM-dd >>> > >>> > log4j.appender.chukwa.mapred.layout=3Dorg.apache.log4j.PatternLayout >>> > >>> > log4j.appender.chukwa.mapred.layout.ConversionPattern=3D%d{ISO8601} %= p >>> > %c: %m%n >>> > >>> > log4j.appender.chukwa.mapred.Dir=3D/tmp/chukwa/log/metrics >>> > >>> > >>> > >>> > I have also copied chukwa-hadoop-*-client.jar and json.jar to >>> > HADOOP_HOME/lib, and restarted hadoop, but still the logs were not >>> > generated. >>> > >>> > Also when I run telnet localhost 9093, the jvm or other hadoop metric= s >>> > are not running, but the other system adapters are running correctly. >>> > >>> > Can someone help me here.. >>> > >>> > Thanks >>> > Meena >> >> >