Hi Jeff

Balancer is a periodic operation.  Did you wait for the specified period for
the balancer to run?
the balancer period is determined by the property "hbase.balancer.period".

Incase you need to check if its running pump in some regions and set this
property to a lower value.  Then you can see the balancer running .

But one thing to be noted is,

If for some reason some region had been in transition due to some abnormal
operation of ZK or HDFS then balancer will not run. You need to inspect the
logs to know this.

Best Regards
Ram

-----Original Message-----
From: Jeff Whiting [mailto:[email protected]] 
Sent: Tuesday, September 13, 2011 3:41 AM
To: [email protected]
Subject: Balancer is running automatically

Any hints as to why the balancer isn't running automatically.  I'll have a
situation like the one below:

ds1.dev.qualtrics.com:60030    1315865095639    requests=0, regions=0,
usedHeap=35, maxHeap=795
ds2.dev.qualtrics.com:60030    1315865040205    requests=0, regions=0,
usedHeap=41, maxHeap=795
ds3.dev.qualtrics.com:60030    1315841275719    requests=45, regions=23,
usedHeap=77, maxHeap=795
ds4.dev.qualtrics.com:60030    1315841273112    requests=5, regions=23,
usedHeap=359, maxHeap=795

In the hbase shell I check that the balancer is supposed to be running.

hbase(main):004:0> balance_switch true
true
0 row(s) in 0.9360 seconds

It is.  But it wont balance the regions until I run:

hbase(main):007:0> balancer
false
0 row(s) in 0.1000 seconds

Then everything looks good:
ds1.dev.qualtrics.com:60030    1315865095639    requests=0, regions=11,
usedHeap=40, maxHeap=795
ds2.dev.qualtrics.com:60030    1315865040205    requests=3, regions=11,
usedHeap=44, maxHeap=795
ds3.dev.qualtrics.com:60030    1315841275719    requests=0, regions=12,
usedHeap=83, maxHeap=795
ds4.dev.qualtrics.com:60030    1315841273112    requests=1, regions=12,
usedHeap=349, maxHeap=795

Is there a place I should be looking to see why the balancer isn't running
automatically?

Thanks,
~Jeff

--      
Jeff Whiting
Qualtrics Senior Software Engineer
[email protected]

Reply via email to