Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> does increasing region filesize followed by major compactions supposed to reduce number of regions?

Copy link to this message
Re: does increasing region filesize followed by major compactions supposed to reduce number of regions?

The answers to your questions (and so many more!) are easily found in the HBase Reference Guide:


"Excess versions are removed during major compactions."

 - Ian "Doug Meil" Varley ;)

On Jan 12, 2012, at 10:59 AM, T Vinod Gupta wrote:

Thanks ill take a look.. meanwhile, i just decreased the versions for my
column families from 3 to 1 and triggered another compaction. does this
make hbase delete the previous versions and keep only the latest one?


On Thu, Jan 12, 2012 at 10:57 AM, kisalay <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:


U will have to do merge of the regions after the major compact to decrease
the number of regions that you have. You can do either an online or an
offline merge.

You can pickup the online merge jruby script from the jira


On Fri, Jan 13, 2012 at 12:13 AM, T Vinod Gupta <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>

so there is no way to make the regions merge since they are much below
region max size?

On Thu, Jan 12, 2012 at 10:40 AM, Doug Meil
Major compactions don't change the number of regions.

On 1/12/12 1:35 PM, "T Vinod Gupta" <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote:

this is probably a rookie question. but my understanding is that if i
increase the region max file size and then initiate major compaction
manually, the number of regions should ideally go down by the factor
which i increased the region max file size. isn't that true? im not
that happening. ofcourse, my compaction is still underway - so i don't
if ill see region count decrease at the very end of it. major
does do region merging right?