<?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: The Hive Metastore canary failed to create a database in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327152#M229988</link>
    <description>&lt;P&gt;Thanks&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;for your reply. I am getting these error alerts ("HIVEMETASTORE_CANARY_HEALTH has become bad: The Hive Metastore canary failed to create a database.") but when I look at the logs I see only these warnings that I had pasted in my initial question. I get these alerts 4 to 5 times a day, although it recovers in about 5 minutes every time.&amp;nbsp;I checked the service monitor logs but I did not find any timeout errors there as well. Could these warnings be setting off alerts? If yes then can we stop that from happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Oct 2021 04:58:49 GMT</pubDate>
    <dc:creator>Shab</dc:creator>
    <dc:date>2021-10-10T04:58:49Z</dc:date>
    <item>
      <title>The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/326456#M229885</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I know this has been asked a lot of times before but I have not been able to resolve this issue using those fixes. I get this error twice or thrice every day. Someone please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3:44:45.647 PM WARN Configuration&lt;BR /&gt;[pool-8-thread-192]: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@464eba80:an attempt to override final parameter: hive.exec.dynamic.partition.mode; Ignoring.&lt;BR /&gt;3:44:45.647 PM WARN Configuration&lt;BR /&gt;[pool-8-thread-192]: org.apache.hadoop.hive.conf.LoopingByteArrayInputStream@464eba80:an attempt to override final parameter: hive.compactor.initiator.on; Ignoring.&lt;BR /&gt;3:44:45.648 PM WARN HiveConf&lt;BR /&gt;[pool-8-thread-192]: HiveConf of name hive.sentry.conf.url does not exist&lt;BR /&gt;3:44:45.648 PM WARN HiveConf&lt;BR /&gt;[pool-8-thread-192]: HiveConf of name hive.enforce.bucketing does not exist&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shaban&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 13:16:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/326456#M229885</guid>
      <dc:creator>Shab</dc:creator>
      <dc:date>2021-10-05T13:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/326874#M229953</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92338"&gt;@Shab&lt;/a&gt;&amp;nbsp;are we talking about the "&lt;SPAN&gt;Metastore canary failed to create a database" error or the warning messages you have pasted here?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we are addressing the canary error, please check the Service Monitor logs if you find any relevant error or warning messages.&amp;nbsp; If you notice any timeout error, you could increase 'hive.metastore.client.socket.timeout&amp;nbsp;' value to, say, 5 mins, under the "Service Monitor Client Config Overrides" in Hive configuration.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if it's a different error, please paste them here.&lt;/P&gt;&lt;P&gt;Service Monitor log file location :&amp;nbsp;&lt;SPAN&gt;/var/log/cloudera-scm-firehose/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/td-p/81021," target="_blank"&gt;https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/td-p/81021,&lt;/A&gt;&amp;nbsp;if that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 16:45:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/326874#M229953</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2021-10-07T16:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327152#M229988</link>
      <description>&lt;P&gt;Thanks&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;for your reply. I am getting these error alerts ("HIVEMETASTORE_CANARY_HEALTH has become bad: The Hive Metastore canary failed to create a database.") but when I look at the logs I see only these warnings that I had pasted in my initial question. I get these alerts 4 to 5 times a day, although it recovers in about 5 minutes every time.&amp;nbsp;I checked the service monitor logs but I did not find any timeout errors there as well. Could these warnings be setting off alerts? If yes then can we stop that from happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 04:58:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327152#M229988</guid>
      <dc:creator>Shab</dc:creator>
      <dc:date>2021-10-10T04:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327154#M229990</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92338"&gt;@Shab&lt;/a&gt;&amp;nbsp;no, those warn messages are not related. Did you try setting &lt;SPAN&gt;'hive.metastore.client.socket.timeout' value to, 5 mins, under the "Service Monitor Client Config Overrides" in Hive configuration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We can completely disable Hive metastore canary, but I won't advise that. if Hive is working as expected, we could safely ignore these canary warnings, however, try setting the&amp;nbsp; aforementioned socket timeout parameter, and that could help the canary tests perform without fail.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you use Sentry in your cluster, sometimes it blocks HMS, which in turn affects Metastore Canary. You could add the following property to overcome that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Navigate to Cloudera Manager &amp;gt; Hive &amp;gt; Configuration &amp;gt; "Hive Metastore Server Advanced Configuration Snippet (Safety Valve) for hive-site.xml" &amp;gt; add the following: 
        &amp;lt;property&amp;gt; 
        &amp;lt;name&amp;gt;hive.metastore.event.listeners&amp;lt;/name&amp;gt; 
        &amp;lt;description&amp;gt;This will stop HMS blocking by Sentry&amp;lt;/description&amp;gt; 
        &amp;lt;value&amp;gt;&amp;lt;/value&amp;gt; 
        &amp;lt;/property&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 08:12:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327154#M229990</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2021-10-10T08:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327158#M229994</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;'hive.metastore.client.socket.timeout' value is currently set to 60. Should I change it to 5? Or should I go ahead with the 'hive.metastore.event.listeners' setting you had suggested, as we do use Sentry in our cluster. What do you suggest&amp;nbsp;should&amp;nbsp;I set the value to in this case?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 13:31:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327158#M229994</guid>
      <dc:creator>Shab</dc:creator>
      <dc:date>2021-10-10T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327159#M229995</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/92338"&gt;@Shab&lt;/a&gt;&amp;nbsp;Set client socket timeout to 300( 5 mins).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value for "&lt;SPAN&gt;hive.metastore.event.listeners" needs to be set to blank(no value).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Oct 2021 17:24:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327159#M229995</guid>
      <dc:creator>smruti</dc:creator>
      <dc:date>2021-10-10T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: The Hive Metastore canary failed to create a database</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327163#M229997</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82698"&gt;@smruti&lt;/a&gt;&amp;nbsp;. Will try this and update with results.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 02:36:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-Hive-Metastore-canary-failed-to-create-a-database/m-p/327163#M229997</guid>
      <dc:creator>Shab</dc:creator>
      <dc:date>2021-10-11T02:36:32Z</dc:date>
    </item>
  </channel>
</rss>

