Hello,
I want to measure requests per second for each Region Server during inserts on
a table that is spread over this Region Servers.
So during inserts I run local java app to grab the Region Server metrics:
public void getRegionServerMetrics() throws Exception{
HBaseAdmin admin = n
Hi,
According to your code:
> RegionServerMetrics metrics = new RegionServerMetrics();
I think that's why it is always empty.
I believe that the right way to get those stats is to use data exposed via
JMX by the RegionServer.
Alternatively you can poll RegionServer web ui periodically and pars
If you just want the load you can do the below
HBaseAdmin admin;
try {
admin = new HBaseAdmin(m_hbConfig);
for (HServerInfo info :
admin.getMaster().getClusterStatus().getServerInfo()){
System.out.println(info.getServerName() + "-->" + info.getLoad());
}
} catch (Exception e) {
throw new Except
}
}
Still tried it on two different clusters from different networks.
-
Perfect...thats exactly what I was looking for.
Thanks a lot for the working code :-)
Von: Mikael Sitruk
An: user@hbase.apache.org
Gesendet: 18:01 Sonntag, 8.Januar 2012
Betreff: Re: Capturing Regi
);
>}
>}
>}
>
> Still tried it on two different clusters from different networks.
> -
>
> Perfect...thats exactly what I was looking for.
> Thanks a lot for the working code :-)
> Von: Mikael Sitruk
> An: user@hbase.apache.org
>
from different networks.
> -
>
> Perfect...thats exactly what I was looking for.
> Thanks a lot for the working code :-)
> Von: Mikael Sitruk
> An: user@hbase.apache.org
> Gesendet: 18:01 Sonntag, 8.Januar 2012
> Betreff: Re: Capturing RegionServerMetric