<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Multiple Hive Metastore instances and compactor thread in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345197#M234418</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ask a few questions about having multiple Hive Mestastore instances and how to correctly configure the compaction initiator and cleaner threads on these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of having multiple Hive Metastore instances is because we have many concurrent connections and, as we have seen on the official documentation (&lt;A href="https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/release-guide/topics/cdpdc-hive.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/release-guide/topics/cdpdc-hive.html&lt;/A&gt;), it is not recommended to have more than 16-24GB of Java Heap due to the impact of Java garbage collection on active processing by the service. 16-24GB of Java Heap is the recommended amount of memory to manage 41-80 concurrent connections (we have around 50 on each Metastore).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what i want to ask is what is the correct configuration for the compactor initiator and cleaner threads (hive.compactor.initiator.on) if we have multiple Hive Metastore instances. Can it be enabled on every instance? Should it be only enabled on 1 instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our environment is running CDH 7.1.7-1 with Hive version &lt;SPAN&gt;3.1.3000.7.1.7.1000-141&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 07:55:21 GMT</pubDate>
    <dc:creator>gabriel_vp</dc:creator>
    <dc:date>2026-04-21T07:55:21Z</dc:date>
    <item>
      <title>Multiple Hive Metastore instances and compactor thread</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345197#M234418</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ask a few questions about having multiple Hive Mestastore instances and how to correctly configure the compaction initiator and cleaner threads on these.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The point of having multiple Hive Metastore instances is because we have many concurrent connections and, as we have seen on the official documentation (&lt;A href="https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/release-guide/topics/cdpdc-hive.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdp-private-cloud-upgrade/latest/release-guide/topics/cdpdc-hive.html&lt;/A&gt;), it is not recommended to have more than 16-24GB of Java Heap due to the impact of Java garbage collection on active processing by the service. 16-24GB of Java Heap is the recommended amount of memory to manage 41-80 concurrent connections (we have around 50 on each Metastore).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what i want to ask is what is the correct configuration for the compactor initiator and cleaner threads (hive.compactor.initiator.on) if we have multiple Hive Metastore instances. Can it be enabled on every instance? Should it be only enabled on 1 instance?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our environment is running CDH 7.1.7-1 with Hive version &lt;SPAN&gt;3.1.3000.7.1.7.1000-141&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 07:55:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345197#M234418</guid>
      <dc:creator>gabriel_vp</dc:creator>
      <dc:date>2026-04-21T07:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Hive Metastore instances and compactor thread</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345226#M234435</link>
      <description>&lt;P&gt;Hello Gabriel,&lt;/P&gt;&lt;P&gt;Only 1 metastore should have the compactor enabled&lt;/P&gt;&lt;P&gt;Personally, I would use the last of the metastores listed on hive-site.xml for Hive on TEZ since it normally is the least used&lt;/P&gt;&lt;P&gt;Best.&lt;/P&gt;&lt;P&gt;-JMP&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 15:39:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345226#M234435</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2022-06-08T15:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Hive Metastore instances and compactor thread</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345275#M234464</link>
      <description>&lt;P&gt;Hi Jose Manuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer. I got confused because i've seen on the Hive Wiki that after Hive version 1.3.0 it may be possible, but i wanted to be sure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.compactor.initiator.on" target="_blank" rel="noopener"&gt;https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.compactor.initiator.on&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Before &lt;A class="external-link" href="https://issues.apache.org/jira/browse/HIVE-11388" target="_blank" rel="nofollow noopener"&gt;Hive 1.3.0&lt;/A&gt;&amp;nbsp;it's critical that this is enabled on exactly one metastore service instance.&amp;nbsp;&lt;SPAN&gt;As of&amp;nbsp;&lt;/SPAN&gt;&lt;A class="external-link" href="https://issues.apache.org/jira/browse/HIVE-11388" target="_blank" rel="nofollow noopener"&gt;Hive 1.3.0&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;this property may be enabled on any number of standalone metastore instances.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 07:56:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/345275#M234464</guid>
      <dc:creator>gabriel_vp</dc:creator>
      <dc:date>2022-06-09T07:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Hive Metastore instances and compactor thread</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/352945#M236617</link>
      <description>&lt;P&gt;Gabriel,&lt;/P&gt;&lt;P&gt;We'd still recommend to have it enabled in only one instance&amp;nbsp;&lt;/P&gt;&lt;P&gt;To avoid race conditions and such&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;-JMP&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 23:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Multiple-Hive-Metastore-instances-and-compactor-thread/m-p/352945#M236617</guid>
      <dc:creator>JoseManuel</dc:creator>
      <dc:date>2022-09-21T23:20:39Z</dc:date>
    </item>
  </channel>
</rss>

