Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sorry, we were unable to deliver your message to the following address.
- Remote host said: 552 spam score (5.4) exceeded threshold (FREEMAIL_FORGED_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL ) [BODY]
- --- Below this line is a copy of the message.
- Received: from [77.238.189.234] by nm23.bullet.mail.ird.yahoo.com with NNFMP; 07 Jan 2012 14:35:43 -0000
- Received: from [212.82.108.252] by tm15.bullet.mail.ird.yahoo.com with NNFMP; 07 Jan 2012 14:35:43 -0000
- Received: from [127.0.0.1] by omp1017.mail.ird.yahoo.com with NNFMP; 07 Jan 2012 14:35:43 -0000
- X-Yahoo-Newman-Property: ymail-3
- X-Yahoo-Newman-Id: [email protected]
- Received: (qmail 90689 invoked by uid 60001); 7 Jan 2012 14:35:43 -0000
- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1325946943; bh=xp7CyTjF4gcG0xaPCJZu1nrwrCT+NZ+tnc2ppBmQLJg=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=If7/Irk3bTDwcUr38P82xt7F96YjeipFUr3mfvKL6l5iyhncDTJfMJHWkjpyjUf/vokYW7V5VCsoNEbHEZ+v4eZg+KnRtu1DIoOSoa1GgrypKw1NRrVvZatRdb71s0zvl81OJujhs7mKmcjUWSTYa9ZLva88ZvDZ5c4pN0Q7WdQ=
- DomainKey-Signature:a=rsa-sha1; q=dns; c=nofws;
- s=s1024; d=yahoo.de;
- h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type;
- b=iMV9sOYdESgNW92xzOg2Gi84ql5I9tMmtkshgf/8IolhddY+7jy4ljegcFVf7HuqeY757+zqBTY/NsEgdw4wEnk0WXBnOhCWKOnwurOSa9JeDmth+9Xhuh1BPfvGC4LGnQkYQEtmwA9fP0FvF4h9fOJYu60T5MfhEZcNrKK/i20=;
- X-YMail-OSG: e6VHWI0VM1na7w4SETsXjkAmbuBdCXCXZWbi2W.Ah7hXFm2
- 12ZArWeuDvPN.ufnohQfiVZohR2nYg.pHyOgWRrEw1v0rMNpCkAyrIu_MzhT
- R7IfqVNUegNo1GOYIyeD_fAxlmXTH55Re_Ry5Rw_jbrKm5swDDSs1ie4nUZC
- y5aDxD1fZg0ZXbP5uYLXkmhdjJljYbmt9nrjQSHhXl4AfTPY253VW60Dzi1x
- vNvItLrQde4prbsQf2iD.3Pu9ablq8LzvG31B3MaL.5_x31I2uK7am.AXhAq
- hSllk11qH7kVG3fZrmpLulDX_KdppVkODSrQ.CL1h.J6JL0vEwGtbMFEgVHs
- 3T98hPgRGFcI-
- Received: from [84.183.247.4] by web132105.mail.ird.yahoo.com via HTTP; Sat, 07 Jan 2012 14:35:42 GMT
- X-Mailer: YahooMailWebService/0.8.115.331698
- Message-ID: <[email protected]>
- Date: Sat, 7 Jan 2012 14:35:42 +0000 (GMT)
- From: =?iso-8859-1?Q?Christian_Sch=E4fer?= <[email protected]>
- Reply-To: =?iso-8859-1?Q?Christian_Sch=E4fer?= <[email protected]>
- Subject: Capturing RegionServerMetrics during inserts on table
- To: "[email protected]" <[email protected]>
- MIME-Version: 1.0
- Content-Type: multipart/alternative; boundary="-1133388179-2144181472-1325946942=:90487"
- ---1133388179-2144181472-1325946942=:90487
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: quoted-printable
- Hello,=0A=0AI want to get requests count per second for each Region Server =
- during inserts on a table that is spread over this Region Servers.=0A=0ASo =
- during inserts I run local java app to grab the Region Server metrics:=0A=
- =0A=A0 public void getRegionServerMetrics() throws Exception{=0A=A0=A0=A0 =
- =A0=A0=A0 HBaseAdmin admin =3D new HBaseAdmin(config);=0A=A0=A0=A0 =A0=A0=
- =A0 HTable table =3D new HTable(config, TABLE_NAME);=0A=A0=A0=A0 =A0=A0=A0 =
- =0A=A0=A0=A0 =A0=A0=A0 Map<HRegionInfo, HServerAddress> regionInfo =3D tabl=
- e.getRegionsInfo();=0A=A0=A0=A0 =A0=A0=A0 =0A=A0=A0=A0 =A0=A0=A0 RegionServ=
- erMetrics metrics =3D new RegionServerMetrics();=0A=A0=A0=A0 =A0=A0=A0 =0A=
- =A0=A0=A0 =A0=A0=A0 while(true){=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 System.out=
- .println(metrics.toString());=0A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 Thread.sleep(=
- 1000);=0A=A0=A0=A0 =A0=A0=A0 }=0A=A0=A0=A0 }=0A=0ABut it prints just:=0A=0A=
- requests=3D0,=0A regions=3D0, stores=3D0, storefiles=3D0, storefileIndexSiz=
- e=3D0, =0AmemstoreSize=3D0, compactionQueueSize=3D0, flushQueueSize=3D0, us=
- edHeap=3D14, =0AmaxHeap=3D865, blockCacheSize=3D0, blockCacheFree=3D0, bloc=
- kCacheCount=3D0, =0AblockCacheHitCount=3D0, blockCacheMissCount=3D0, blockC=
- acheEvictedCount=3D0, =0AblockCacheHitRatio=3D0, blockCacheHitCachingRatio=
- =3D0=0A=0A..although the WebGUI of HMaster shows that there are requests fo=
- r all Region Servers.=0A=0AThe TABLE_NAME is equal for the inserting app an=
- d the metrics app.=0A=0AAny suggestions?
- ---1133388179-2144181472-1325946942=:90487
- Content-Type: text/html; charset=iso-8859-1
- Content-Transfer-Encoding: quoted-printable
- <html><body><div style=3D"color:#000; background-color:#fff; font-family:ar=
- ial, helvetica, sans-serif;font-size:12pt">Hello,<br><br>I want to get requ=
- ests count per second for each Region Server during inserts on a table that=
- is spread over this Region Servers.<br><br>So during inserts I run local j=
- ava app to grab the Region Server metrics:<br><br> public void getReg=
- ionServerMetrics() throws Exception{<br> &nbs=
- p; HBaseAdmin admin =3D new HBaseAdmin(config);<br>  =
- ; HTable table =3D new HTable(config, TABLE_NAME);<br> &nb=
- sp; <br> Map&=
- lt;HRegionInfo, HServerAddress> regionInfo =3D table.getRegionsInfo();<b=
- r> <br> =
- RegionServerMetrics metrics =3D new RegionServerMetrics();<br> =
- <br>
- while(true){<br> S=
- ystem.out.println(metrics.toString());<br> &n=
- bsp; Thread.sleep(1000);<br> &nb=
- sp; }<br> }<br><br>But it prints just:<br><br>reque=
- sts=3D0,=0A regions=3D0, stores=3D0, storefiles=3D0, storefileIndexSize=3D0=
- , =0AmemstoreSize=3D0, compactionQueueSize=3D0, flushQueueSize=3D0, usedHea=
- p=3D14, =0AmaxHeap=3D865, blockCacheSize=3D0, blockCacheFree=3D0, blockCach=
- eCount=3D0, =0AblockCacheHitCount=3D0, blockCacheMissCount=3D0, blockCacheE=
- victedCount=3D0, =0AblockCacheHitRatio=3D0, blockCacheHitCachingRatio=3D0<b=
- r><br>..although the WebGUI of HMaster shows that there are requests for al=
- l Region Servers.<br><br>The TABLE_NAME is equal for the inserting app and =
- the metrics app.<br><br>Any suggestions?</div></body></html>
- ---1133388179-2144181472-1325946942=:90487--
Advertisement
Add Comment
Please, Sign In to add comment