Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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
Highlighted

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

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.

Highlighted

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

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.

 

Highlighted

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

Contributor

The config looks good. Please try and check.

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here