<?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: Not able create table form external spark in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100678#M40378</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Can you also try this validate on the privileges please&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Grant&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;CREATE EXTERNAL TABLE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;on the external location to create a delta table.&amp;nbsp; on&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;UNITY_CATALOG_EXTERNAL_GENERATE_PATH_CREDENTIALS_DENIED&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;because that privilege is blocked behind.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 03:24:57 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2024-12-03T03:24:57Z</dc:date>
    <item>
      <title>Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100290#M40256</link>
      <description>&lt;P&gt;py4j.protocol.Py4JJavaError: An error occurred while calling o123.sql.&lt;BR /&gt;: io.unitycatalog.client.ApiException: generateTemporaryPathCredentials call failed with: 401 - {"error_code":"UNAUTHENTICATED","message":"Request to generate access credential for path 'abfss://ext-location@databrickspocdixon.dfs.core.windows.net/tables/demoTab3' from outside of Databricks Unity Catalog enabled compute environment is denied for security. Please contact Databricks support for integrations with Unity Catalog.","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"UNITY_CATALOG_EXTERNAL_GENERATE_PATH_CREDENTIALS_DENIED","domain":"unity-catalog.databricks.com","metadata":{"path":"abfss://ext-location@databrickspocdixon.dfs.core.windows.net/tables/demoTab3"}},{"@type":"type.googleapis.com/google.rpc.RequestInfo","request_id":"dafd42ef-1dd1-4225-b41e-ac44be07e6d5","serving_data":""}]}&lt;BR /&gt;at io.unitycatalog.client.api.TemporaryCredentialsApi.getApiException(TemporaryCredentialsApi.java:78)&lt;BR /&gt;at io.unitycatalog.client.api.TemporaryCredentialsApi.generateTemporaryPathCredentialsWithHttpInfo(TemporaryCredentialsApi.java:192)&lt;BR /&gt;at io.unitycatalog.client.api.TemporaryCredentialsApi.generateTemporaryPathCredentials(TemporaryCredentialsApi.java:170)&lt;BR /&gt;at io.unitycatalog.spark.UCSingleCatalog.createTable(UCSingleCatalog.scala:106)&lt;BR /&gt;at org.apache.spark.sql.execution.datasources.v2.CreateTableExec.run(CreateTableExec.scala:44)&lt;BR /&gt;at org.apache.spark.sql.execution.datasources.v2.V2CommandExec.result$lzycompute(V2CommandExec.scala:43)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 05:22:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100290#M40256</guid>
      <dc:creator>dixonantony</dc:creator>
      <dc:date>2024-11-28T05:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100597#M40341</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/131185"&gt;@dixonantony&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Have you followed the steps here -&amp;nbsp;&lt;A href="https://docs.databricks.com/en/data-governance/unity-catalog/access-open-api.html#external-data-access" target="_blank"&gt;https://docs.databricks.com/en/data-governance/unity-catalog/access-open-api.html#external-data-access&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 11:04:29 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100597#M40341</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-12-02T11:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100598#M40342</link>
      <description>&lt;P&gt;Also how are you creating the table,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please try the below option&lt;/P&gt;
&lt;P&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;df.write.insertInto&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;, or the v2 version&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;df.writeTo(tbl_name).append()&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;df.write.saveAsTable&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp; does not fully support custom catalogs.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 11:05:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100598#M40342</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-12-02T11:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100599#M40343</link>
      <description>&lt;P&gt;Thanks for the reply, I was following below doc and select table is working, issue is with create table.&lt;/P&gt;&lt;P&gt;spark.sql(f"create table if not exists {catalog}.{databasename}.testTable(id INTEGER, name VARCHAR(10), age INTEGER)").show()&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/t5/technical-blog/integrating-apache-spark-with-databricks-unity-catalog-assets/ba-p/97533" target="_blank" rel="noopener"&gt;https://community.databricks.com/t5/technical-blog/integrating-apache-spark-with-databricks-unity-catalog-assets/ba-p/97533&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Same issue is listed in&amp;nbsp;&lt;A href="https://github.com/unitycatalog/unitycatalog/issues/560" target="_blank" rel="noopener"&gt;https://github.com/unitycatalog/unitycatalog/issues/560&lt;/A&gt;&amp;nbsp; but not sure what exactly is the SAFE enabling.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 11:17:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100599#M40343</guid>
      <dc:creator>dixonantony</dc:creator>
      <dc:date>2024-12-02T11:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100677#M40377</link>
      <description>&lt;P&gt;I see thanks for sharing, for the safe flag -&amp;nbsp;&lt;SPAN&gt;You can work with your Databricks Point of Contact to get help on enabling the SAFE flag for the workspace.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 03:21:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100677#M40377</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-12-03T03:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100678#M40378</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Can you also try this validate on the privileges please&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Grant&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;CREATE EXTERNAL TABLE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;on the external location to create a delta table.&amp;nbsp; on&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;UNITY_CATALOG_EXTERNAL_GENERATE_PATH_CREDENTIALS_DENIED&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;because that privilege is blocked behind.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 03:24:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100678#M40378</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2024-12-03T03:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100679#M40379</link>
      <description>&lt;P&gt;I already tried&amp;nbsp;&lt;SPAN&gt;CREATE EXTERNAL TABLE , but not working.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 03:40:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/100679#M40379</guid>
      <dc:creator>dixonantony</dc:creator>
      <dc:date>2024-12-03T03:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/104804#M41888</link>
      <description>&lt;P&gt;There also is this blog&amp;nbsp;&lt;A href="https://community.databricks.com/t5/technical-blog/integrating-apache-spark-with-databricks-unity-catalog-assets/ba-p/97533" target="_blank"&gt;https://community.databricks.com/t5/technical-blog/integrating-apache-spark-with-databricks-unity-catalog-assets/ba-p/97533&lt;/A&gt;&amp;nbsp;that came up while reviewing your issue. All of this is in public preview.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jan 2025 23:33:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/104804#M41888</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-01-08T23:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Not able create table form external spark</title>
      <link>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/105212#M42047</link>
      <description>&lt;P&gt;&lt;I&gt;You n&lt;SPAN&gt;eed the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;generateTemporaryPathCrede&lt;WBR /&gt;ntials&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;API as you are trying to create external tables&amp;nbsp;&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 16:37:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/not-able-create-table-form-external-spark/m-p/105212#M42047</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-01-10T16:37:21Z</dc:date>
    </item>
  </channel>
</rss>

