Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Run hbase major compaction on all tables

avatar
Master Guru

I want to run major compaction on all tables & CF in hbase. In past I built a custom script to grab all tables in hbase and run compaction on each one individually. Is there easier way of doing this?

1 ACCEPTED SOLUTION

avatar
Master Collaborator

You should spread out the major compaction on individual tables.

Refer to the following:

HBASE-16147 Add ruby wrapper for getting compaction state

If there is not enough time to wait for compaction on one table to finish, at least leave some time between the start of major compactions.

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

You should spread out the major compaction on individual tables.

Refer to the following:

HBASE-16147 Add ruby wrapper for getting compaction state

If there is not enough time to wait for compaction on one table to finish, at least leave some time between the start of major compactions.

avatar
Super Guru

Doesn't look like there is any way to accept a regex of tables.