Support Questions
Find answers, ask questions, and share your expertise

How to set run compactor for a particular Hive Metastore when Hive HA is enabled

Explorer

I've enabled High Availabilty for Hive, as per HW doc I need to assign run compactor property on only one particular Hive metastore.

How can I set this up?

HDP 3.1.0

Hive 3.0.0

3 REPLIES 3

Expert Contributor

This can be achieved using config groups in Ambari.

 https://docs.cloudera.com/HDPDocuments/Ambari-2.7.4.0/managing-and-monitoring-ambari/content/amb_cre...

 

For disabling compaction follow https://docs.cloudera.com/HDPDocuments/HDP3/HDP-3.1.5/managing-hive/content/hive_disable_hive_compac...

 

We discourage using this mechanism of initiating  compaction for one metastore.

Explorer

Is this the way to set it up @asish 

pauljoshiva_0-1594065235136.png

I've created a Host config group 'Run Compactor' with 1 HMS host and enabled Run Compactor property for that host and disabled the Run compactor property in the "default' group.

 

Expert Contributor

The config looks good. Please try and check.

 

 

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.