Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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.