How to dump an HBase table?

HBase data model and data purge.

  • Hi, We have the following use case: ·        Store telecom CDR data on a per subscriber basis ·        data is time series based and every record is per-subscriber based ·        comes in round the clock ·        the expected volume of data would be around 300 million records/day. ·        this data is to be queried 24/7 by an online system where the filters are subscriber id and date range   Since the volume of data is huge, we have data retention policies to archive old data on a daily basis. For example, if retention is set to 90 days, every day a offline process would delete data from Hbase which is older than 90 days and archive it on tape. The current HBase data model design is as follows: Separate table for every day's data with row key as subscriber id: reason for this is bulk delete of one days data within a big table is more expensive than dropping a one day table In this per-day-separate-table model, the load balancer will never get triggered as the current days table is always in memory, and daughter regions will continuously get assigned to same region server. This leads to a region server hotspots. Please feedback on whether the per-day-separate-table model is the best-practice for this use case considering the data life cycle management requirement. If yes, how do we solve the side effect of region server hotspot? If no, please advice alternate model. Thanks in advance MK

  • Answer:

    Think below two tips should help: 1. Prefix subscriber id with salt. 2. Pre-splitting.(Disable automatic splitting)

Jahangir Mohammed at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

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.