How to dump an HBase table?

Is there a way to cap the number of regions for an HBase table?

  • The speakers from Facebook and StumbleUpon at Hadoop World 2011 all recommended limiting a table's number of regions to a manageable number (~20). However I can't find any mention to such a configuration on the docs. I only found this open JIRA - https://issues.apache.org/jira/browse/HBASE-2844 So how is it done?

  • Answer:

    There is no way to set a fixed number of regions. But you can control the number of regions by changing the maximum size of a region. This can be done by modifying the setting hbase.hregion.max.filesize (at least on version 0.20), which defaults to 256MB if I remember correctly.

Erik-Jan van Baaren at Quora Visit the source

Was this solution helpful to you?

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.