I want to add a task to my server scheduler to run a major compaction for the hbase.
How can I implement this with java code?
It could be either for single region or for all regions.
Can I do the major compaction for some specific tablespaces?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If a table name is given then the compaction will be invoked on all regions of that table.
Refer to the majorCompact javadoc:
After invoking this code you’ll find the note “Compacting stores…” under “Currently running tasks” on the Master UI (port 60010 by default)