Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 01-20-2017 02:41 PM
I would need to stop an hbase major compaction since it is affecting the performance of reads/writes
Created 04-03-2023 10:51 PM
@joan_viladrosa
We don’t have any possible way to stop the compaction in flight in a gracious manner, but we can stop the major compaction by restarting the specific region server where the major compaction is running.
Created 01-20-2017 07:33 PM
Please set the value for hbase.hregion.majorcompaction to "0"
<property> <name>hbase.hregion.majorcompaction</name> <value>0</value> </property>
This will disable the major compactions and you can trigger it manually during the off peak hours. Make sure we restart hbase services for this to take effect.
Created 01-20-2017 10:04 PM
This is for disabling future major compactions, but is there any way to stop a running major compaction?
Created 01-20-2017 10:56 PM
No .. I don't think we can do that .
Created 01-21-2017 03:30 PM
@Joan Viladrosa there was a JIRA https://issues.apache.org/jira/browse/HBASE-5147 that proposed such functionality but since major compaction is part of normal operations for HBASE, it was marked as resolved. I don't know of any way of stopping compaction in flight in a gracious manner. Perhaps you'd want to open a JIRA again and try your luck? In general, you are better off turning off future compactions and manage schedule via cron. Seems to me this is a minor inconvenience and you won't get much luck getting it through.
Created 04-03-2023 10:51 PM
@joan_viladrosa
We don’t have any possible way to stop the compaction in flight in a gracious manner, but we can stop the major compaction by restarting the specific region server where the major compaction is running.