Enable automatic compaction
Several properties in the Hive and Hive metastore service configurations must be set to enable automatic compaction. You need to check that the property settings are correct and to add one of the properties to the Hive on Tez service. Automatic compaction will then occur at regular intervals, but only if necessary.
hive.compactor.initiator.on = true
(default)hive.compactor.worker.threads =
<a value greater than 0> (default and recommended value = 5)hive.metastore.runworker.in = hs2
(default)