Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-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 ABBF7100FA for ; Thu, 7 May 2015 04:16:48 +0000 (UTC) Received: (qmail 53497 invoked by uid 500); 7 May 2015 04:16:48 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 53150 invoked by uid 500); 7 May 2015 04:16:47 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 53140 invoked by uid 99); 7 May 2015 04:16:47 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2015 04:16:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C49B6C009C for ; Thu, 7 May 2015 04:16:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.141 X-Spam-Level: *** X-Spam-Status: No, score=3.141 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LOTSOFHASH=0.25, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Roht8V8fs_2p for ; Thu, 7 May 2015 04:16:24 +0000 (UTC) Received: from nm44.bullet.mail.ne1.yahoo.com (nm44.bullet.mail.ne1.yahoo.com [98.138.120.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id D5EAB40E1C for ; Thu, 7 May 2015 04:16:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1430972177; bh=qD0DJCHcB9UKAta415uTOpxVHY+KTZuJ69MeGwOQeVQ=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=cuHRt0thzGQh7Xih8kNqIkTMCp6LBY7qRScWLQXmhkF8L3Nuz6tmsElESFHI91VZcBtarHTC7QNYfpF6XwQMmHijNhXTAMdHJfAd+RiOpUXa3/OEDguo0JeDX9dWtYFyPxR3/fNH+g55mChKjXh0Hbd4GNsD4u+69SX+iRoEtOtDLD/SiV55O6iba6hTlPmWi/5a8pHo4glYV2eaVO3qJhC38V4+4JG0Y/eJnwwjFfJOjbj/VLBfKeXl1af5SLPFw1BSWzIL81aduDH9/K9tdZu0HxAqcsN5FyA4MKxPyfNoBD1O92emfsvxt4YBJb0yNr0d8MUcWpsnsvt4TQ8D+A== Received: from [127.0.0.1] by nm44.bullet.mail.ne1.yahoo.com with NNFMP; 07 May 2015 04:16:17 -0000 Received: from [98.138.100.115] by nm44.bullet.mail.ne1.yahoo.com with NNFMP; 07 May 2015 04:13:26 -0000 Received: from [98.138.88.236] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 07 May 2015 04:13:26 -0000 Received: from [127.0.0.1] by omp1036.mail.ne1.yahoo.com with NNFMP; 07 May 2015 04:13:26 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 784469.52972.bm@omp1036.mail.ne1.yahoo.com X-YMail-OSG: P1HMWdgVM1mFs7.YaTOn2gmfd8dlwMGfcnLijOrh7DlRWuXWDM0fkK0OL9eE8gt 2Axi8Qy2_LX02J.jcc1h6RzfaVUyWkMQRGYdsjFK1xPBE1b3PWq0MuxeHV5OVYnwEAPE55VyygT8 rfq4sK2mhh6O7d85Vs1xL7_ao6YgB.XLzjKdxR3n3zNvC6frbER4dmySbEhY0D_jGnTazjTJkc3u z_WRlbYewD9wbCRVaPjyff84W3KCv4oh4slwi8gs9Q_4lKjxP9okXRY3G8gFu_zqSNH5DA2OLHv5 YnE94gxeTwwjA4Pi6IUvtPHSJHB_saGQ559qf4OwW5Q9.REWErgHXKpk7TdY.9ROf7zZgDkNf8w0 2wrmFgCz8mIS2XQSnRauR0qDMisPTl5lEUNlM9Lvz_E4AC1MEIAOSHEr5Yxj78AMVtfg92iRNyxM F98P8Inn3KA20Fl_6L9mwAeB3jYEmT1Iqji0xnx3B9yF_1XrB_U7Tpa51OomlhxYiqcAJS1Yrcl5 ELdTbJ1RZWFCsiy6x Received: by 98.138.105.200; Thu, 07 May 2015 04:13:26 +0000 Date: Thu, 7 May 2015 04:13:25 +0000 (UTC) From: Jayesh Thakrar Reply-To: Jayesh Thakrar To: "user@ambari.apache.org" Message-ID: <1359542402.1695300.1430972005799.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <23F352694FA4F0DD.1-684249ef-3af9-47bd-95c1-fe7ed067fece@mail.outlook.com> References: <23F352694FA4F0DD.1-684249ef-3af9-47bd-95c1-fe7ed067fece@mail.outlook.com> Subject: Re: Kafka broker metrics not appearing in REST API MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1695299_2069869615.1430972005778" ------=_Part_1695299_2069869615.1430972005778 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Here's the embedded HBase data dir size. [jthakrar@dtord01flm03p data]$ pwd/localpart0/ambari-metrics-collector/hbas= e/data [jthakrar@dtord01flm03p data]$ du -xhs *14G =C2=A0 =C2=A0 default72K =C2=A0= =C2=A0 hbase From: Siddharth Wagle To: "j_thakrar@yahoo.com" ; "user@ambari.apache.org" = =20 Sent: Wednesday, May 6, 2015 11:00 PM Subject: Re: Kafka broker metrics not appearing in REST API =20 We have tested the embeded mode to work with upto 400 node cluster and mult= iple services running on it. You can change the hbase.rootdir in ams-hbase-site and possibly write to pa= rtition with separate disk mount. And copy over the data from existing location. It would be good to know wha= t is the size of data written to hbase.rootdir to get an idea of what kind = of write volume are we looking at.=C2=A0 Sid Sent by Outlook for Android On Wed, May 6, 2015 at 8:52 PM -0700, "Jayesh Thakrar" wrote: We have a 30-node cluster.Unfortunately, this is also our production cluste= r and there's no HDFS as it is a dedicated Flume cluster.We have installed = Ambari + Storm + Kafka (HDP) on a cluster on which we have production data = being flumed.The flume data is being sent to an HDFS cluster which is a lit= tle overloaded, so we want to send flume data to Kafka and then "throttle" = the data being loaded into the HDFS cluster. But you have given me an idea - maybe I can setup a new HBase file location= so that I can do away with HBase data corruption, if any. It will take me some time to do that, will let you know once I have tried i= t out. Thanks,jayesh From: Siddharth Wagle To: "user@ambari.apache.org" ; Jayesh Thakrar Sent: Wednesday, May 6, 2015 10:42 PM Subject: Re: Kafka broker metrics not appearing in REST API #yiv0023911519 #yiv0023911519 -- --P {margin-top:0;margin-bottom:0;}#yiv002= 3911519 --P {margin-top:0;margin-bottom:0;}#yiv0023911519 How big is your c= luster in terms of number of nodes?You can tune settings for HBase based on= cluster size.=20 Following are the instructions for writing metrics to HDFS instead of local= FS. ams-site::: timeline.metrics.service.operation.mode =3D distributed ams-hbase-site:::hbase.rootdir =3D hdfs://:8020/amshbasehbas= e.cluster.distributed =3D true -Sid From: Jayesh Thakrar Sent: Wednesday, May 06, 2015 8:30 PM To: user@ambari.apache.org; Siddharth Wagle; Jayesh Thakrar Subject: Re: Kafka broker metrics not appearing in REST API=C2=A0More info.= ... I was doing some "stress-testing" and interestingly, the Metrics Collector = crashed 2 times and I had to restart it (don't like a file-based HBase for = the metrics collector, but not very confident of configuring the system to = point to an existing HBase cluster). Also, after this email thread, I looked up =C2=A0the metrics collector logs= and see errors like this - METRIC_RECORD' at region=3DMETRIC_RECORD,,1429966316307.947cfa22f884d035c09= fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103,= seqNum=3D24393013:09:37,619 =C2=A0INFO [phoenix-1-thread-349921] RpcRetryi= ngCaller:129 - Call exception, tries=3D11, retries=3D35, started=3D835564 m= s ago, cancelled=3Dfalse, msg=3Drow 'kafka.network.RequestMetrics.Metadata-= RequestsPerSec.1MinuteRate^@dtord01flm27p.dc.dotomi.net^@^@^@^AL=C3=AF=C2= =BF=C2=BD=C3=AF=C2=BF=C2=BD:=C3=AF=C2=BF=C2=BDkafka_broker' on table 'METRI= C_RECORD' at region=3DMETRIC_RECORD,kafkark.RequestMetrics.Metadata-Request= sPerSec.1MinuteRate\x00dtord01flm27p.dc.dotomi.net\x00\x00\x00\x01L\xED\xED= :\xE5kafka_broker,1429966316307.d488f5e58d54c3251cb81fdfa475dd45., hostname= =3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103, seqNum=3D24393113:10:58= ,082 =C2=A0INFO [phoenix-1-thread-349920] RpcRetryingCaller:129 - Call exce= ption, tries=3D12, retries=3D35, started=3D916027 ms ago, cancelled=3Dfalse= , msg=3Drow '' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,,14299663= 16307.947cfa22f884d035c09fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi= .net,60455,1429737430103, seqNum=3D24393013:10:58,082 =C2=A0INFO [phoenix-1= -thread-349921] RpcRetryingCaller:129 - Call exception, tries=3D12, retries= =3D35, started=3D916027 ms ago, cancelled=3Dfalse, msg=3Drow 'kafka.network= .RequestMetrics.Metadata-RequestsPerSec.1MinuteRate^@dtord01flm27p.dc.dotom= i.net^@^@^@^AL=C3=AF=C2=BF=C2=BD=C3=AF=C2=BF=C2=BD:=C3=AF=C2=BF=C2=BDkafka_= broker' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,kafkark.RequestM= etrics.Metadata-RequestsPerSec.1MinuteRate\x00dtord01flm27p.dc.dotomi.net\x= 00\x00\x00\x01L\xED\xED:\xE5kafka_broker,1429966316307.d488f5e58d54c3251cb8= 1fdfa475dd45., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103, = seqNum=3D24393113:10:58,112 ERROR [Thread-25] TimelineMetricAggregator:221 = - Exception during aggregating metrics.org.apache.phoenix.exception.Phoenix= IOException: org.apache.phoenix.exception.PhoenixIOException: Failed after = attempts=3D36, exceptions:Sat Apr 25 13:10:58 UTC 2015, null, java.net.Sock= etTimeoutException: callTimeout=3D900000, callDuration=3D938097: row '' on = table 'METRIC_RECORD' at region=3DMETRIC_RECORD,,1429966316307.947cfa22f884= d035c09fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737= 430103, seqNum=3D243930 =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.phoenix.util.ServerUtil.parseServ= erException(ServerUtil.java:107)=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.p= hoenix.iterate.ParallelIterators.getIterators(ParallelIterators.java:527)= =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.phoenix.iterate.MergeSortResultIt= erator.getIterators(MergeSortResultIterator.java:48)=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.phoenix.iterate.MergeSortResultIterator.minIterator(Me= rgeSortResultIterator.java:63)=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.pho= enix.iterate.MergeSortResultIterator.next(MergeSortResultIterator.java:90)= =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.phoenix.iterate.MergeSortTopNResu= ltIterator.next(MergeSortTopNResultIterator.java:87)=C2=A0 =C2=A0 =C2=A0 = =C2=A0 at org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.ja= va:739)=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.yarn.server.applica= tionhistoryservice.metrics.timeline.TimelineMetricAggregator.aggregateMetri= csFromResultSet(TimelineMetricAggregator.java:104)=C2=A0 =C2=A0 =C2=A0 =C2= =A0 at org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.time= line.TimelineMetricAggregator.aggregate(TimelineMetricAggregator.java:72)= =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.yarn.server.applicationhis= toryservice.metrics.timeline.AbstractTimelineAggregator.doWork(AbstractTime= lineAggregator.java:217)=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.hadoop.ya= rn.server.applicationhistoryservice.metrics.timeline.AbstractTimelineAggreg= ator.runOnce(AbstractTimelineAggregator.java:94)=C2=A0 =C2=A0 =C2=A0 =C2=A0= at org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.timelin= e.AbstractTimelineAggregator.run(AbstractTimelineAggregator.java:70) From: Jayesh Thakrar To: Siddharth Wagle ; "user@ambari.apache.org" Sent: Wednesday, May 6, 2015 10:07 PM Subject: Re: Kafka broker metrics not appearing in REST API Hi Siddharth, Yes, I am using=C2=A0Ambari 2.0 with Ambari Metrics service.The interesting= thing is that I got them for some time and not anymore.And I also know tha= t the metrics are being collected since i can see them on the dashboard.Any= pointer for troubleshooting? And btw, it would be nice to have a count of messages received and not a co= mputed metric count / min.TSDB does a good job of giving me cumulative and = rate-per-sec graphs and numbers. Thanks in advance,Jayesh From: Siddharth Wagle To: "user@ambari.apache.org" ; Jayesh Thakrar Sent: Wednesday, May 6, 2015 10:03 PM Subject: Re: Kafka broker metrics not appearing in REST API #yiv0023911519 #yiv0023911519 -- -- --P {margin-top:0;margin-bottom:0;}#yiv= 0023911519 Hi Jayesh, Are you using Ambari 2.0 with Ambari Metrics service? BR,Sid From: Jayesh Thakrar Sent: Wednesday, May 06, 2015 7:53 PM To: user@ambari.apache.org Subject: Kafka broker metrics not appearing in REST API=C2=A0Hi, I have installed 2 clusters with Ambari and Storm and Kafka.After the insta= ll, I was able to get metrics for both Storm and Kafka via REST API.This wo= rked fine for a week, but since the past 2 days, I have not been getting Ka= fka metrics. I need the metrics to push to an OpenTSDB cluster.I do get host metrics and= Nimbus metrics but not KAFKA_BROKER metrics. I did have maintenance turned on for some time, but maintenance is turned o= ff now. [jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/NIMBUS?fields=3Dmetri= cs'{=C2=A0 "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_flume_ka= fka_prod/components/NIMBUS?fields=3Dmetrics",=C2=A0 "ServiceComponentInfo" = : {=C2=A0 =C2=A0 "cluster_name" : "ord_flume_kafka_prod",=C2=A0 =C2=A0 "com= ponent_name" : "NIMBUS",=C2=A0 =C2=A0 "service_name" : "STORM"=C2=A0 },=C2= =A0 "metrics" : {=C2=A0 =C2=A0 "storm" : {=C2=A0 =C2=A0 =C2=A0 "nimbus" : {= =C2=A0 =C2=A0 =C2=A0 =C2=A0 "freeslots" : 54.0,=C2=A0 =C2=A0 =C2=A0 =C2=A0 = "supervisors" : 27.0,=C2=A0 =C2=A0 =C2=A0 =C2=A0 "topologies" : 0.0,=C2=A0 = =C2=A0 =C2=A0 =C2=A0 "totalexecutors" : 0.0,=C2=A0 =C2=A0 =C2=A0 =C2=A0 "to= talslots" : 54.0,=C2=A0 =C2=A0 =C2=A0 =C2=A0 "totaltasks" : 0.0,=C2=A0 =C2= =A0 =C2=A0 =C2=A0 "usedslots" : 0.0=C2=A0 =C2=A0 =C2=A0 }=C2=A0 =C2=A0 }=C2= =A0 }} [jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/KAFKA_BROKER?fields= =3Dmetrics'{=C2=A0 "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_= flume_kafka_prod/components/KAFKA_BROKER?fields=3Dmetrics",=C2=A0 "ServiceC= omponentInfo" : {=C2=A0 =C2=A0 "cluster_name" : "ord_flume_kafka_prod",=C2= =A0 =C2=A0 "component_name" : "KAFKA_BROKER",=C2=A0 =C2=A0 "service_name" := "KAFKA"=C2=A0 }} [jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/SUPERVISOR?fields=3Dm= etrics'{=C2=A0 "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_flum= e_kafka_prod/components/SUPERVISOR?fields=3Dmetrics",=C2=A0 "ServiceCompone= ntInfo" : {=C2=A0 =C2=A0 "cluster_name" : "ord_flume_kafka_prod",=C2=A0 =C2= =A0 "component_name" : "SUPERVISOR",=C2=A0 =C2=A0 "service_name" : "STORM"= =C2=A0 } ------=_Part_1695299_2069869615.1430972005778 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Here's the embedded HBase data = dir size.
<= br>
[jthakrar@dtord01flm03p data]$ pwd
/localpart0/ambari-metrics-collec= tor/hbase/data

[jthakrar@dtord01flm03p data]$ du -xhs *
14G     de= fault
72K     hbase

=




From: Siddharth Wagle <swagle@h= ortonworks.com>
To:= "j_thakrar@yahoo.com" <j_thakrar@yahoo.com>; "user@ambari.apache.org= " <user@ambari.apache.org>
Sent: Wednesday, May 6, 2015 11:00 PM
Subject: Re: Kafka broker metrics not appearing= in REST API

We have tested the embeded mode to work with upto 400 node cluster and mult= iple services running on it.

You can change the hbase.rootdir in ams-hbase-site and possibly write = to partition with separate disk mount.

And copy over the data from existing location. It would be good to kno= w what is the size of data written to hbase.rootdir to get an idea of what = kind of write volume are we looking at. 

Sid





We have a 30-node cluster.
Unfortunately, th= is is also our production cluster and there's no HDFS as it is a dedicated = Flume cluster.
We have installed= Ambari + Storm + Kafka (HDP) on a cluster on which we have production data= being flumed.
The flume data is= being sent to an HDFS cluster which is a little overloaded, so we want to = send flume data to Kafka and then "throttle" the data being loaded into the= HDFS cluster.

But y= ou have given me an idea - maybe I can setup a new HBase file location so t= hat I can do away with HBase data corruption, if any.

It will take me some time to do that, will let you know on= ce I have tried it out.

Thank= s,
jayes= h



From: Siddharth = Wagle <swagle@hortonworks.com>
To: "user@ambari.apache.org= " <user@ambari.apache.org>; Jayesh Thakrar <j_thakrar@yahoo.com>= ;
Sent: Wednesday, May 6, 201= 5 10:42 PM
Subject: Re: Kafka broker m= etrics not appearing in REST API

How big is your cluster in terms of number of nodes?
You can tune settings for HBase based on cluster size.

Following are the instructions for writing metrics to HDFS instead of = local FS.

ams-site:::
timeline.metrics.service.operation.mode =3D distributed

ams-hbase-site:::
hbase.rootdir =3D hdfs://<namenode-host>:8020/amshbase
hbase.cluster.distributed =3D true

-Sid




From: Jayesh = Thakrar <j_thakrar@yahoo.com>
Sent: Wednesday, May 06, 2015 8:30 PM
To: user@ambari.apache.org; Siddharth Wagle; Jayesh Thakrar
Subject: Re: Kafka broker metrics not appearing in REST API
 
More info..= ..

I was= doing some "stress-testing" and interestingly, the Metrics Collector crash= ed 2 times and I had to restart it (don't like a file-based HBase for the m= etrics collector, but not very confident of configuring the system to point to an existing HBase cluster).

Also, after this = email thread, I looked up  the metrics collector logs and see errors l= ike this -

METRIC_RECORD' at region=3DMETRIC_RECORD,,1429966316307.947cfa22f884d035c09= fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103,= seqNum=3D243930
13:09:37,619  INFO [phoenix-1-thread-349921] RpcRetryingCaller:129 - C= all exception, tries=3D11, retries=3D35, started=3D835564 ms ago, cancelled= =3Dfalse, msg=3Drow 'kafka.network.RequestMetrics.Metadata-RequestsPerSec.1= MinuteRate^@dtord01flm27p.dc.dotomi.net^@^@^@^AL=C3=AF=C2=BF=C2=BD=C3=AF=C2= =BF=C2=BD:=C3=AF=C2=BF=C2=BDkafka_broker' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,kafkark.RequestMetrics.= Metadata-RequestsPerSec.1MinuteRate\x00dtord01flm27p.dc.dotomi.net\x00\x00\= x00\x01L\xED\xED:\xE5kafka_broker,1429966316307.d488f5e58d54c3251cb81fdfa47= 5dd45., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103, seqNum=3D243931
13:10:58,082  INFO [phoenix-1-thread-349920] RpcRetryingCaller:129 - C= all exception, tries=3D12, retries=3D35, started=3D916027 ms ago, cancelled= =3Dfalse, msg=3Drow '' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,,= 1429966316307.947cfa22f884d035c09fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103, seqNum=3D24393= 0
13:10:58,082  INFO [phoenix-1-thread-349921] RpcRetryingCaller:129 - C= all exception, tries=3D12, retries=3D35, started=3D916027 ms ago, cancelled= =3Dfalse, msg=3Drow 'kafka.network.RequestMetrics.Metadata-RequestsPerSec.1= MinuteRate^@dtord01flm27p.dc.dotomi.net^@^@^@^AL=C3=AF=C2=BF=C2=BD=C3=AF=C2= =BF=C2=BD:=C3=AF=C2=BF=C2=BDkafka_broker' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,kafkark.RequestMetrics.= Metadata-RequestsPerSec.1MinuteRate\x00dtord01flm27p.dc.dotomi.net\x00\x00\= x00\x01L\xED\xED:\xE5kafka_broker,1429966316307.d488f5e58d54c3251cb81fdfa47= 5dd45., hostname=3Ddtord01flm03p.dc.dotomi.net,60455,1429737430103, seqNum=3D243931
13:10:58,112 ERROR [Thread-25] Time= lineMetricAggregator:221 - Exception during aggregating metrics.
org.apache.phoenix.exception.Phoeni= xIOException: org.apache.phoenix.exception.PhoenixIOException: Failed after= attempts=3D36, exceptions:
Sat Apr 25 13:10:58 UTC 2015, null,= java.net.SocketTimeoutException: callTimeout=3D900000, callDuration=3D9380= 97: row '' on table 'METRIC_RECORD' at region=3DMETRIC_RECORD,,142996631630= 7.947cfa22f884d035c09fe804b1f5402c., hostname=3Ddtord01flm03p.dc.dotomi.net= ,60455,1429737430103, seqNum=3D243930

        at org.= apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:107)
        at org.= apache.phoenix.iterate.ParallelIterators.getIterators(ParallelIterators.jav= a:527)
        at org.= apache.phoenix.iterate.MergeSortResultIterator.getIterators(MergeSortResult= Iterator.java:48)
        at org.= apache.phoenix.iterate.MergeSortResultIterator.minIterator(MergeSortResultI= terator.java:63)
        at org.= apache.phoenix.iterate.MergeSortResultIterator.next(MergeSortResultIterator= .java:90)
        at org.= apache.phoenix.iterate.MergeSortTopNResultIterator.next(MergeSortTopNResult= Iterator.java:87)
        at org.= apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:739)
        at org.apache.hadoop.yarn.server.applicationhis= toryservice.metrics.timeline.TimelineMetricAggregator.aggregateMetricsFromR= esultSet(TimelineMetricAggregator.java:104)
        at org.= apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.Timeli= neMetricAggregator.aggregate(TimelineMetricAggregator.java:72)
        at org.= apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.Abstra= ctTimelineAggregator.doWork(AbstractTimelineAggregator.java:217)
        at org.= apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.Abstra= ctTimelineAggregator.runOnce(AbstractTimelineAggregator.java:94)
        at org.= apache.hadoop.yarn.server.applicationhistoryservice.metrics.timeline.Abstra= ctTimelineAggregator.run(AbstractTimelineAggregator.java:70)




From:<= /span> Jayesh Thakrar <j_thakrar@yahoo.com>
To: Siddharth Wagle <swa= gle@hortonworks.com>; "user@ambari.apache.org" <user@ambari.apache.or= g>
Sent: Wednesday, May 6, 201= 5 10:07 PM
Subject: Re: Kafka broker m= etrics not appearing in REST API

Hi Siddhart= h,

Yes, I am using&n= bsp;Ambari 2.0 with Ambari Metrics service.
The interesting thing is that I g= ot them for some time and not anymore.
And I also know that the metrics = are being collected since i can see them on the dashboard.
Any pointer= for troubleshooting?

And btw, it would be nice to have a count of messages received a= nd not a computed metric count / min.
TSDB does a good job of giving me= cumulative and rate-per-sec graphs and numbers.

Thanks in advance= ,
Jayesh




From: Siddharth W= agle <swagle@hortonworks.com>
To: "user@ambari.apache.org= " <user@ambari.apache.org>; Jayesh Thakrar <j_thakrar@yahoo.com>= ;
Sent: Wednesday, May 6, 201= 5 10:03 PM
Subject: Re: Kafka broker m= etrics not appearing in REST API

Hi Jayesh,

Are you using Amb= ari 2.0 with Ambari Metrics service?

BR,
Sid



From: Jayesh = Thakrar <j_thakrar@yahoo.com>
Sent: Wednesday, May 06, 2015 7:53 PM
To: user@ambari.apache.org
Subject: Kafka broker metrics not appearing in REST API
 
Hi,

I have installed = 2 clusters with Ambari and Storm and Kafka.
After= the install, I was able to get metrics for both Storm and Kafka via REST A= PI.
This worked fine = for a week, but since the past 2 days, I have not been getting Kafka metric= s.

I need the metric= s to push to an OpenTSDB cluster.
I do = get host metrics and Nimbus metrics but not KAFKA_BROKER metrics.

I did have mainte= nance turned on for some time, but maintenance is turned off now.

[jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/NIMBUS?fields=3Dmetri= cs'
{
  "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_flume_kafka_= prod/components/NIMBUS?fields=3Dmetrics",
  "ServiceComponentInfo" : {
    "cluster_name" : "ord_flume_kafka_prod",
    "component_name" : "NIMBUS",
    "service_name" : "STORM"
  },
  "metrics" : {
    "storm" : {
      "nimbus" : {
        "freeslots" : 54.0,
        "supervisors" : 27.0,
        "topologies" : 0.0,
        "totalexecutors" : 0.0,
        "totalslots" : 54.0,
        "totaltasks" : 0.0,
        "usedslots" : 0.0
      }
    }
  }
}

[jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/KAFKA_BROKER?fields= =3Dmetrics'
{
  "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_flume_kafka_= prod/components/KAFKA_BROKER?fields=3Dmetrics",
  "ServiceComponentInfo" : {
    "cluster_name" : "ord_flume_kafka_prod",
    "component_name" : "KAFKA_BROKER",
    "service_name" : "KAFKA"
  }
}

[jthakrar@dtord01hdp0101d ~]$ curl --user admin:admin 'http://dtord01flm01p= :8080/api/v1/clusters/ord_flume_kafka_prod/components/SUPERVISOR?fields=3Dm= etrics'
{
  "href" : "http://dtord01flm01p:8080/api/v1/clusters/ord_flume_kafka_= prod/components/SUPERVISOR?fields=3Dmetrics",
  "ServiceComponentInfo" : {
    "cluster_name" : "ord_flume_kafka_prod",
    "component_name" : "SUPERVISOR",
    "service_name" : "STORM"
  }









------=_Part_1695299_2069869615.1430972005778--