<?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: Hive Metastore fails to start for a newly installed cluster. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62537#M72405</link>
    <description>I dont know the solution, but I think cloudera manager agent which is running under root is starting these processes and sets the correct permissions. Now I could imagine, that maybe the cloudera-scm-agent is not running under root, or maybe the permissions are set wrongly.&lt;BR /&gt;&lt;BR /&gt;I would check the exact process directory of the hive metastore.&lt;BR /&gt;I would also verify in processes, that just one copy of HiveMetastore is running (to eliminate the possibility that two processes are running in the same time)&lt;BR /&gt;Try to restart the cloudera-scm-agent.&lt;BR /&gt;</description>
    <pubDate>Wed, 06 Dec 2017 14:07:25 GMT</pubDate>
    <dc:creator>Tomas79</dc:creator>
    <dc:date>2017-12-06T14:07:25Z</dc:date>
    <item>
      <title>Hive Metastore fails to start for a newly installed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62532#M72404</link>
      <description>&lt;P&gt;I have a 5&amp;nbsp;node cluster, where I have deployed&amp;nbsp;&lt;SPAN&gt;CDH-5.9.0-1.cdh5.9.0.p0.23-el7.parcel&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Other details: Java Version: 1.8., CentOS Linux release 7.3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, all the services are up and running except for Hive- Hive Metastore, and which in turn results for Impala's bad health. The major issue is that the Hive metastore is not coming up and throws the below error:&lt;/P&gt;
&lt;P&gt;java.lang.NullPointerException&lt;BR /&gt;at org.apache.hadoop.hive.metastore.ObjectStore.getObjectCount(ObjectStore.java:1103)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.ObjectStore.getTableCount(ObjectStore.java:1081)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:103)&lt;BR /&gt;at com.sun.proxy.$Proxy7.getTableCount(Unknown Source)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.updateMetrics(HiveMetaStore.java:6244)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.init(HiveMetaStore.java:528)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.RetryingHMSHandler.&amp;lt;init&amp;gt;(RetryingHMSHandler.java:78)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.RetryingHMSHandler.getProxy(RetryingHMSHandler.java:84)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6280)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore.newRetryingHMSHandler(HiveMetaStore.java:6275)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:6525)&lt;BR /&gt;at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:6452)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.run(RunJar.java:221)&lt;BR /&gt;at org.apache.hadoop.util.RunJar.main(RunJar.java:136)&lt;BR /&gt;Exception in thread "main" java.lang.NullPointerException&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On further investigating the logs, I found the message as below:&lt;/P&gt;
&lt;P&gt;Can't open /opt/cm5.9.0/run/cloudera-scm-agent/process/{PID}-hive-HIVEMETASTORE/supervisor.conf: Permission denied. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; But i think this "&lt;SPAN&gt;Permission denied&lt;/SPAN&gt;" isn't the cause,because this&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Permission denied&lt;/SPAN&gt;&lt;SPAN&gt;" is appearing while starting HBase too,so, i think this "Permission denied" isn't the cause. By the way, hive MetaStore link to Mysql metaDataBase &amp;nbsp;is ok, it can create table and insert data&amp;nbsp;automatically.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This trouble is the same as &lt;A href=" https://community.cloudera.com/t5/Cloudera-Manager-Installation/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62516#M12525" target="_blank"&gt;here &lt;/A&gt;&amp;nbsp; , Nobody reply except me.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone faced the same issue and got this fixed or has any idea about the issue..THANKS!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:36:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62532#M72404</guid>
      <dc:creator>eniac27427</dc:creator>
      <dc:date>2022-09-16T12:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore fails to start for a newly installed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62537#M72405</link>
      <description>I dont know the solution, but I think cloudera manager agent which is running under root is starting these processes and sets the correct permissions. Now I could imagine, that maybe the cloudera-scm-agent is not running under root, or maybe the permissions are set wrongly.&lt;BR /&gt;&lt;BR /&gt;I would check the exact process directory of the hive metastore.&lt;BR /&gt;I would also verify in processes, that just one copy of HiveMetastore is running (to eliminate the possibility that two processes are running in the same time)&lt;BR /&gt;Try to restart the cloudera-scm-agent.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Dec 2017 14:07:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62537#M72405</guid>
      <dc:creator>Tomas79</dc:creator>
      <dc:date>2017-12-06T14:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore fails to start for a newly installed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62566#M72406</link>
      <description>&lt;P&gt;check if there are multiple supervisor runining on that host using the below command .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ps aux |grep supervisor&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if so&amp;nbsp; you will&amp;nbsp; need to kill it and then start the cloudera -scm&amp;nbsp; agent and kick off the hive metastore .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Dec 2017 15:35:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62566#M72406</guid>
      <dc:creator>csguna</dc:creator>
      <dc:date>2017-12-07T15:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Metastore fails to start for a newly installed cluster.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62638#M72407</link>
      <description>&lt;P&gt;hello everyone. i had solved the problem.&lt;/P&gt;&lt;P&gt;the cause is&amp;nbsp;MySql database encoding, run the following command solved the problem "&lt;EM&gt;alter&lt;/EM&gt; &lt;EM&gt;database&lt;/EM&gt;&lt;SPAN&gt; hive character &lt;/SPAN&gt;&lt;EM&gt;set&lt;/EM&gt; &lt;EM&gt;latin1&lt;/EM&gt;" . dropping the "hive" database and regenerate "hive" database. Thanks !.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2017 14:51:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Metastore-fails-to-start-for-a-newly-installed-cluster/m-p/62638#M72407</guid>
      <dc:creator>eniac27427</dc:creator>
      <dc:date>2017-12-09T14:51:31Z</dc:date>
    </item>
  </channel>
</rss>

