<?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 Re: HiveMetaStore and HiveServer2 didn't log the pool thread in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44746#M39601</link>
    <description>&lt;P&gt;Yes, HMS and HS2 have separate log4j.properties files.&lt;/P&gt;&lt;P&gt;However, I find it odd that one cluster has the threadname in the log records while the other does not (both CDH5.4.7). The defaults should be exactly the same on both the clusters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps, you could confirm that you have not overridden the configuration in a safety valve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a threadname to the log records for the HMS,&lt;/P&gt;&lt;P&gt;Select Hive Service --&amp;gt; Instances --&amp;gt; Hive Metastore Server --&amp;gt; Configuration&lt;BR /&gt;then type in log4j and look for&lt;BR /&gt;"Hive Metastore Server Logging Advanced Configuration Snippet (Safety Valve)" This is where I would set it to something like this ..&lt;BR /&gt;log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p &lt;SPAN class="error"&gt;[%t]&lt;/SPAN&gt;: %c{2} (%F:%M(%L)) - %m%n&lt;BR /&gt;or just&lt;BR /&gt;%d{ISO8601} %p &lt;SPAN class="error"&gt;[%t]&lt;/SPAN&gt;: %c: %m%n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the %t is what adds the thread name to the log records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Thanks&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2016 12:26:48 GMT</pubDate>
    <dc:creator>NaveenGangam</dc:creator>
    <dc:date>2016-09-06T12:26:48Z</dc:date>
    <item>
      <title>HiveMetaStore and HiveServer2 didn't log the pool thread</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44695#M39597</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 clusters both are in CDH 5.4.7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First cluster when I see the log file&lt;/P&gt;&lt;P&gt;In HiveMetastore log, I see&amp;nbsp;[pool-3-thread-xxx] every line in the log and&lt;/P&gt;&lt;P&gt;In HiveServer2 log, I also see&amp;nbsp;[HiveServer2-Handler-Pool: Thread-xxxxxx] every line in the log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in the second cluster&lt;/P&gt;&lt;P&gt;In HiveMetastore log, It didn't print [pool-3-thread-xxx] and&lt;/P&gt;&lt;P&gt;In HiveServer2 log, It didn't print&amp;nbsp;&lt;SPAN&gt;[HiveServer2-Handler-Pool: Thread-xxxxxx]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to see the pool&amp;nbsp;thread in the log, I don't know why the first cluster show pool thread and second cluster didn't show&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please suggest,&amp;nbsp;&lt;SPAN&gt;Any kind of help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Teng&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:37:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44695#M39597</guid>
      <dc:creator>teng</dc:creator>
      <dc:date>2022-09-16T10:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore and HiveServer2 didn't log the pool thread</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44723#M39598</link>
      <description>&lt;P&gt;Hi Teng,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This sounds like that you are using different thrift service class, can you please copy and paste some sample HS2 and HMS logs that do not have thread information here? I would like to confirm which class you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 10:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44723#M39598</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2016-09-05T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore and HiveServer2 didn't log the pool thread</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44727#M39599</link>
      <description>&lt;P&gt;I figure out that it uses different log4j configuration&lt;/P&gt;&lt;P&gt;The first one there is [%t] in conversionPattern&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2016 12:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44727#M39599</guid>
      <dc:creator>teng</dc:creator>
      <dc:date>2016-09-05T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore and HiveServer2 didn't log the pool thread</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44731#M39600</link>
      <description>&lt;P&gt;Hi Teng,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am glad that you have figured out the cause.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 03:50:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44731#M39600</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2016-09-06T03:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore and HiveServer2 didn't log the pool thread</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44746#M39601</link>
      <description>&lt;P&gt;Yes, HMS and HS2 have separate log4j.properties files.&lt;/P&gt;&lt;P&gt;However, I find it odd that one cluster has the threadname in the log records while the other does not (both CDH5.4.7). The defaults should be exactly the same on both the clusters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps, you could confirm that you have not overridden the configuration in a safety valve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a threadname to the log records for the HMS,&lt;/P&gt;&lt;P&gt;Select Hive Service --&amp;gt; Instances --&amp;gt; Hive Metastore Server --&amp;gt; Configuration&lt;BR /&gt;then type in log4j and look for&lt;BR /&gt;"Hive Metastore Server Logging Advanced Configuration Snippet (Safety Valve)" This is where I would set it to something like this ..&lt;BR /&gt;log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p &lt;SPAN class="error"&gt;[%t]&lt;/SPAN&gt;: %c{2} (%F:%M(%L)) - %m%n&lt;BR /&gt;or just&lt;BR /&gt;%d{ISO8601} %p &lt;SPAN class="error"&gt;[%t]&lt;/SPAN&gt;: %c: %m%n&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the %t is what adds the thread name to the log records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 12:26:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveMetaStore-and-HiveServer2-didn-t-log-the-pool-thread/m-p/44746#M39601</guid>
      <dc:creator>NaveenGangam</dc:creator>
      <dc:date>2016-09-06T12:26:48Z</dc:date>
    </item>
  </channel>
</rss>

