<?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>topic Re: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHive in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92435#M38438</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123016"&gt;@balwantsingh24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Internal Metastore:-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Internal metastores are managed by Databricks and are typically used to store metadata about databases, tables, views, and user-defined functions (UDFs). This metadata is essential for operations like the SHOW TABLES SQL command and the Tables UI in Databricks. The internal metastore is part of the Apache Hive project and is hosted by Databricks for their customers.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;External Metastore:-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;External metastores, on the other hand, are customer-hosted and can be configured to connect to Databricks clusters. This setup is often used to share metadata between Databricks and other systems like Hive, Glue Presto etc; Customers explicitly configure this for their requirements or use-case.&lt;/P&gt;
&lt;P&gt;To check the driver logs, you can follow the below link,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/compute/clusters-manage.html#compute-driver-and-worker-logs" target="_blank"&gt;https://docs.databricks.com/en/compute/clusters-manage.html#compute-driver-and-worker-logs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Based on the error logs showing in the driver logs, we will understand what could be the cause of this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error "Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetastoreClient" typically occurs when the Spark driver is unable to initiate a Hive client connection to the metastore. Is the 3306 port allowed on the Databricks VPC as per the docs?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 12:37:55 GMT</pubDate>
    <dc:creator>saikumar246</dc:creator>
    <dc:date>2024-10-01T12:37:55Z</dc:date>
    <item>
      <title>java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMeta</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92020#M38325</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-09-27 133729.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/11555iF3AA1441F17EEE54/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-09-27 133729.png" alt="Screenshot 2024-09-27 133729.png" /&gt;&lt;/span&gt;Guys please help me too solve this issue, I need it very urgent basis.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 11:13:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92020#M38325</guid>
      <dc:creator>balwantsingh24</dc:creator>
      <dc:date>2024-09-27T11:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHive</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92394#M38423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123016"&gt;@balwantsingh24&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;Thank you for sharing your concern here.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Seems like the cluster is unable to initialize the metastore. Are you using the Databricks internal Hive metastore or any external metastore?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We can see this error if the metastore is not set up correctly. I think you can also observe "metastore is down" events in the Cluster event logs during the error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Make sure the metastore is set up correctly if it is an external metastore on the cluster. you can also check the cluster driver logs (log4j logs) to know the details of the error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Please leave a like if it is helpful. Follow-ups are appreciated.&lt;/P&gt;
&lt;P&gt;Kudos,&lt;/P&gt;
&lt;P&gt;Sai Kumar&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 07:24:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92394#M38423</guid>
      <dc:creator>saikumar246</dc:creator>
      <dc:date>2024-10-01T07:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHive</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92396#M38424</link>
      <description>&lt;P&gt;It is helpful&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/40400"&gt;@saikumar246&lt;/a&gt;&amp;nbsp;, But could you please elaborate the external and internal hive metastore. I need to know how to check cluster driver logs (new here ). What steps to do to initoalise the cluster metastore&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 07:38:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92396#M38424</guid>
      <dc:creator>balwantsingh24</dc:creator>
      <dc:date>2024-10-01T07:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHive</title>
      <link>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92435#M38438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123016"&gt;@balwantsingh24&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Internal Metastore:-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Internal metastores are managed by Databricks and are typically used to store metadata about databases, tables, views, and user-defined functions (UDFs). This metadata is essential for operations like the SHOW TABLES SQL command and the Tables UI in Databricks. The internal metastore is part of the Apache Hive project and is hosted by Databricks for their customers.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;External Metastore:-&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;External metastores, on the other hand, are customer-hosted and can be configured to connect to Databricks clusters. This setup is often used to share metadata between Databricks and other systems like Hive, Glue Presto etc; Customers explicitly configure this for their requirements or use-case.&lt;/P&gt;
&lt;P&gt;To check the driver logs, you can follow the below link,&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/en/compute/clusters-manage.html#compute-driver-and-worker-logs" target="_blank"&gt;https://docs.databricks.com/en/compute/clusters-manage.html#compute-driver-and-worker-logs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Based on the error logs showing in the driver logs, we will understand what could be the cause of this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error "Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetastoreClient" typically occurs when the Spark driver is unable to initiate a Hive client connection to the metastore. Is the 3306 port allowed on the Databricks VPC as per the docs?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 12:37:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/java-lang-runtimeexception-unable-to-instantiate-org-apache/m-p/92435#M38438</guid>
      <dc:creator>saikumar246</dc:creator>
      <dc:date>2024-10-01T12:37:55Z</dc:date>
    </item>
  </channel>
</rss>

