<?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: Issues Creating External Tables in Hive Metastore vs. Unity Catalog in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/issues-creating-external-tables-in-hive-metastore-vs-unity/m-p/92026#M2153</link>
    <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105086"&gt;@jv_v&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's possible to put a path to external storage i.e.:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-external-tables.html" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt; &lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt; hive_metastore.schema.&lt;SPAN class=""&gt;table&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;LOCATION&lt;/SPAN&gt; &lt;SPAN class=""&gt;'s3://depts/finance/sec_filings'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Can you share which issue do you have cause it's not clear from your question&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2024 12:57:17 GMT</pubDate>
    <dc:creator>Imalkov</dc:creator>
    <dc:date>2024-09-27T12:57:17Z</dc:date>
    <item>
      <title>Issues Creating External Tables in Hive Metastore vs. Unity Catalog</title>
      <link>https://community.databricks.com/t5/data-governance/issues-creating-external-tables-in-hive-metastore-vs-unity/m-p/88874#M2092</link>
      <description>&lt;P&gt;Hi Databricks Community,&lt;/P&gt;&lt;P&gt;I’m encountering some challenges when working with external tables in Databricks. I’m using both Unity Catalog and Hive Meta store and have noticed differences in how external tables are handled.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Unity Catalog:&lt;/STRONG&gt; I can successfully create a Delta table using the following query, specifying an external location:&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;CREATE TABLE IF NOT EXISTS 'UC-catalog.schema.table'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;USING DELTA&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOCATION 'Path'.&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;2.Hive Metastore:&lt;/STRONG&gt; When I attempt a similar approach using the Hive Metastore, I run into problems. The table gets created, but I am unable to see the data. Here is the query I used:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CREATE TABLE IF NOT EXISTS 'hivemetastore.schema.table'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;USING DELTA&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOCATION 'Path'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Despite the table being created, the data isn’t visible. And facing below error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Can external tables be created in Hive Metastore from external locations like Azure Blob or AWS S3 buckets?&lt;/STRONG&gt; If so, what is the correct approach?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;What could be causing the data visibility issue in Hive Metastore?&lt;/STRONG&gt; I’ve checked the path and permissions but am still encountering problems.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance or best practices for handling external tables in Hive Metastore would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 12:52:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/issues-creating-external-tables-in-hive-metastore-vs-unity/m-p/88874#M2092</guid>
      <dc:creator>jv_v</dc:creator>
      <dc:date>2024-09-06T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Creating External Tables in Hive Metastore vs. Unity Catalog</title>
      <link>https://community.databricks.com/t5/data-governance/issues-creating-external-tables-in-hive-metastore-vs-unity/m-p/92026#M2153</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/105086"&gt;@jv_v&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's possible to put a path to external storage i.e.:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-external-tables.html" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class=""&gt;OR&lt;/SPAN&gt; &lt;SPAN class=""&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class=""&gt;TABLE&lt;/SPAN&gt; hive_metastore.schema.&lt;SPAN class=""&gt;table&lt;/SPAN&gt;
  &lt;SPAN class=""&gt;LOCATION&lt;/SPAN&gt; &lt;SPAN class=""&gt;'s3://depts/finance/sec_filings'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Can you share which issue do you have cause it's not clear from your question&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 12:57:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/issues-creating-external-tables-in-hive-metastore-vs-unity/m-p/92026#M2153</guid>
      <dc:creator>Imalkov</dc:creator>
      <dc:date>2024-09-27T12:57:17Z</dc:date>
    </item>
  </channel>
</rss>

