<?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: Problems with HiveMetastoreClient and internal Databricks Metastore. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27780#M19628</link>
    <description>&lt;P&gt;Thanks for the reference, @Atanu Sarkar​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Seems a little odd to me that I'd need to change the internal Databricks Metastore table to add a column expected by the client default Scala client. I'm afraid this could cause issues with other users/jobs in the same workspace. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I can't seem to find more information about the internal Databricks Metastore besides &lt;A href="https://docs.databricks.com/data/metastores/index.html#:~:text=Every%20Databricks%20deployment%20has%20a%20central%20Hive%20metastore%20accessible%20by%20all%20clusters%20to%20persist%20table%20metadata." alt="https://docs.databricks.com/data/metastores/index.html#:~:text=Every%20Databricks%20deployment%20has%20a%20central%20Hive%20metastore%20accessible%20by%20all%20clusters%20to%20persist%20table%20metadata." target="_blank"&gt;this single sentence&lt;/A&gt; in the documentation that could help me understand what the issue is. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 17:28:58 GMT</pubDate>
    <dc:creator>lecardozo</dc:creator>
    <dc:date>2022-03-04T17:28:58Z</dc:date>
    <item>
      <title>Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27775#M19623</link>
      <description>&lt;P&gt;I've been trying to use ​the HiveMetastoreClient class in Scala to extract some metadata from Databricks internal Metastore, without success. I'm currently using the 7.3 LTS runtime.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;The error seems to be related to some kind of inconsistency between Client and Hive Metastore Schema versions, but I can't immediately tell why. By running the following Scala snippet:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;%scala 
&amp;nbsp;
import org.apache.hadoop.hive.metastore.HiveMetaStoreClient
import org.apache.hadoop.hive.conf.HiveConf
&amp;nbsp;
var hiveConf = new HiveConf
var client = new HiveMetaStoreClient(hiveConf)
client.getTable("my_db", "my_table")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following MetaException&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Caused by: javax.jdo.JDOException: Exception thrown when executing query : SELECT DISTINCT 'org.apache.hadoop.hive.metastore.model.MTable' AS NUCLEUS_TYPE,A0.CREATE_TIME,A0.LAST_ACCESS_TIME,A0.OWNER,A0.RETENTION,A0.IS_REWRITE_ENABLED,A0.TBL_NAME,A0.TBL_TYPE,A0.TBL_ID FROM TBLS A0 LEFT OUTER JOIN DBS B0 ON A0.DB_ID = B0.DB_ID WHERE A0.TBL_NAME = ? AND B0.`NAME` = ?
NestedThrowables:
java.sql.SQLSyntaxErrorException: (conn=18979393) Unknown column 'A0.IS_REWRITE_ENABLED' in 'field list'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Does anyone know what could be the issue here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime: 7.3 LTS&lt;/P&gt;&lt;P&gt;Conf:&lt;/P&gt;&lt;P&gt; spark.sql.hive.metastore.version: 0.13.0&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 15:22:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27775#M19623</guid>
      <dc:creator>lecardozo</dc:creator>
      <dc:date>2022-02-17T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27776#M19624</link>
      <description>&lt;P&gt;Hello, @Lucas Cardozo​! My name is Piper, and I'm a moderator for Databricks. Welcome! It's nice to meet you. Thank you for your question. Let's give it a while for the members to respond to your question. We'll circle back around later if we need to. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 16:27:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27776#M19624</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-17T16:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27778#M19626</link>
      <description>&lt;P&gt;Hi, @Kaniz Fatma​&amp;nbsp;! Thanks for the reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;This SQL statement is generated by the HiveMetastoreClient and these columns are from the Databricks Internal Metastore (metastore_db). &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Do you know if there are any updates to the Databricks Internal Metastore schema that could make it somehow incompatible with the `HiveMetastoreClient`? It looks like the client expects this column to exist, but it seems that it doesn't &lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 16:35:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27778#M19626</guid>
      <dc:creator>lecardozo</dc:creator>
      <dc:date>2022-02-23T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27779#M19627</link>
      <description>&lt;P&gt;@Lucas Cardozo​&amp;nbsp; may be this can help - &lt;A href="https://stackoverflow.com/questions/63782822/setting-up-azure-sql-external-metastore-for-azure-databricks-invalid-column-na" target="test_blank"&gt;https://stackoverflow.com/questions/63782822/setting-up-azure-sql-external-metastore-for-azure-databricks-invalid-column-na&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:04:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27779#M19627</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-03T15:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27780#M19628</link>
      <description>&lt;P&gt;Thanks for the reference, @Atanu Sarkar​&amp;nbsp;.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;Seems a little odd to me that I'd need to change the internal Databricks Metastore table to add a column expected by the client default Scala client. I'm afraid this could cause issues with other users/jobs in the same workspace. &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I can't seem to find more information about the internal Databricks Metastore besides &lt;A href="https://docs.databricks.com/data/metastores/index.html#:~:text=Every%20Databricks%20deployment%20has%20a%20central%20Hive%20metastore%20accessible%20by%20all%20clusters%20to%20persist%20table%20metadata." alt="https://docs.databricks.com/data/metastores/index.html#:~:text=Every%20Databricks%20deployment%20has%20a%20central%20Hive%20metastore%20accessible%20by%20all%20clusters%20to%20persist%20table%20metadata." target="_blank"&gt;this single sentence&lt;/A&gt; in the documentation that could help me understand what the issue is. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; &lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 17:28:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27780#M19628</guid>
      <dc:creator>lecardozo</dc:creator>
      <dc:date>2022-03-04T17:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with HiveMetastoreClient and internal Databricks Metastore.</title>
      <link>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27781#M19629</link>
      <description>&lt;P&gt;@Lucas Cardozo​&amp;nbsp; so basically we have our metastore based on the database you have, so you can modify as per your need but yeah I agree that this may break other job that relates to this change. so you may cross check with users who are using the same table. This link also may be useful to know about databricks metastore.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.confessionsofadataguy.com/hive-metastore-in-databricks-what-to-know/" target="test_blank"&gt;https://www.confessionsofadataguy.com/hive-metastore-in-databricks-what-to-know/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 05:21:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/problems-with-hivemetastoreclient-and-internal-databricks/m-p/27781#M19629</guid>
      <dc:creator>Atanu</dc:creator>
      <dc:date>2022-03-16T05:21:12Z</dc:date>
    </item>
  </channel>
</rss>

