<?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 logs not showing logs from custom event listener using HiveMetaStoreEventListener in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HiveMetaStore-logs-not-showing-logs-from-custom-event/m-p/299025#M219464</link>
    <description>&lt;P&gt;I have found a solution to the above problem. The jar file needs to be placed under /usr/hdp/version-number/hive/auxlib as described in this question&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/How-add-path-with-aux-jars-for-Hive-client/td-p/213667" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/How-add-path-with-aux-jars-for-Hive-client/td-p/213667&lt;/A&gt;&lt;BR /&gt;After placing jar under auxlib, I changed the&amp;nbsp;&lt;SPAN&gt;hive.&lt;/SPAN&gt;&lt;SPAN&gt;metastore.&lt;/SPAN&gt;&lt;SPAN&gt;event.&lt;/SPAN&gt;&lt;SPAN&gt;listeners property from ambari. There are three values of the same property name under ambari-&amp;gt; hive-&amp;gt;configs-&amp;gt;advanced&lt;BR /&gt;1) Advanced hive-interactive-site&lt;BR /&gt;2) Advanced hive-site&lt;BR /&gt;3) Advanced hivemetastore-site&lt;BR /&gt;changed all of them to&amp;nbsp;com.medium.hive.metastore.listerner.CustomListener;&lt;BR /&gt;Restarted all hive services and the problem was solved.&amp;nbsp;&lt;BR /&gt;Hope this helps someone.&lt;BR /&gt;Regards,&lt;BR /&gt;Aakash&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jul 2020 03:39:52 GMT</pubDate>
    <dc:creator>aakash_nand</dc:creator>
    <dc:date>2020-07-02T03:39:52Z</dc:date>
    <item>
      <title>HiveMetaStore logs not showing logs from custom event listener using HiveMetaStoreEventListener</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetaStore-logs-not-showing-logs-from-custom-event/m-p/298988#M219451</link>
      <description>&lt;P&gt;I am trying to create a very basic Custom HiveMetastore Event Listener using the following blog. I have successfully created the JAR file and have executed the following steps on beeline but the event listener logs are still not getting displayed in /var/log/hive/hivemetastore.log&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Followed Tutorial=&amp;gt;&amp;nbsp;&lt;A href="https://towardsdatascience.com/apache-hive-hooks-and-metastore-listeners-a-tale-of-your-metadata-903b751ee99f" target="_blank" rel="noopener"&gt;https://towardsdatascience.com/apache-hive-hooks-and-metastore-listeners-a-tale-of-your-metadata-903b751ee99f&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Git Repository=&amp;gt;&amp;nbsp;&lt;A href="https://github.com/mesmacosta/hive-custom-metastore-listener" target="_blank" rel="noopener"&gt;https://github.com/mesmacosta/hive-custom-metastore-listener&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Step 1: Added JAR to hdfs&lt;/P&gt;&lt;PRE&gt;hadoop fs -put custom-metastore-listener.jar /user/data/&lt;/PRE&gt;&lt;P&gt;Step 2: Added JAR from HDFS to the hive&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; add jar hdfs:///user/data/custom&lt;SPAN class="s1"&gt;-metastore-listener.jar; &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;Step3: Set event listener&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; set hive.metastore.event.listeners=com.medium.hive.metastore.listerner.CustomListener;&lt;/PRE&gt;&lt;P&gt;Step4: Run create table command and check hivemetastore logs.&lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; CREATE TABLE test(name string) STORED AS ORC;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;But the log does not show anything from a custom event listener. Apart from this, I have also tried adding JAR through hive-site.xml and also tried restarting hive metastore service from ambari but it is still not working. Any help on this would be highly appreciated.&lt;BR /&gt;Thank You,&lt;BR /&gt;Aakash&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 12:52:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetaStore-logs-not-showing-logs-from-custom-event/m-p/298988#M219451</guid>
      <dc:creator>aakash_nand</dc:creator>
      <dc:date>2020-07-01T12:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: HiveMetaStore logs not showing logs from custom event listener using HiveMetaStoreEventListener</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HiveMetaStore-logs-not-showing-logs-from-custom-event/m-p/299025#M219464</link>
      <description>&lt;P&gt;I have found a solution to the above problem. The jar file needs to be placed under /usr/hdp/version-number/hive/auxlib as described in this question&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.cloudera.com/t5/Support-Questions/How-add-path-with-aux-jars-for-Hive-client/td-p/213667" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/How-add-path-with-aux-jars-for-Hive-client/td-p/213667&lt;/A&gt;&lt;BR /&gt;After placing jar under auxlib, I changed the&amp;nbsp;&lt;SPAN&gt;hive.&lt;/SPAN&gt;&lt;SPAN&gt;metastore.&lt;/SPAN&gt;&lt;SPAN&gt;event.&lt;/SPAN&gt;&lt;SPAN&gt;listeners property from ambari. There are three values of the same property name under ambari-&amp;gt; hive-&amp;gt;configs-&amp;gt;advanced&lt;BR /&gt;1) Advanced hive-interactive-site&lt;BR /&gt;2) Advanced hive-site&lt;BR /&gt;3) Advanced hivemetastore-site&lt;BR /&gt;changed all of them to&amp;nbsp;com.medium.hive.metastore.listerner.CustomListener;&lt;BR /&gt;Restarted all hive services and the problem was solved.&amp;nbsp;&lt;BR /&gt;Hope this helps someone.&lt;BR /&gt;Regards,&lt;BR /&gt;Aakash&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:39:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HiveMetaStore-logs-not-showing-logs-from-custom-event/m-p/299025#M219464</guid>
      <dc:creator>aakash_nand</dc:creator>
      <dc:date>2020-07-02T03:39:52Z</dc:date>
    </item>
  </channel>
</rss>

