<?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: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40946#M27265</link>
    <description>&lt;P&gt;Yes, Service Principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 11:43:22 GMT</pubDate>
    <dc:creator>Mihai_Cog</dc:creator>
    <dc:date>2023-08-22T11:43:22Z</dc:date>
    <item>
      <title>Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fails</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40901#M27254</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to create a database in Azure Databricks using the abfss Location in the create database statement and it throws an exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;%sql&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;CREATE DATABASE IF NOT EXISTS test COMMENT "Database for Test Area" LOCATION "abfss://test@storagetemp.dfs.core.windows.net/database/"&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The error from creating the database is:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration for storage account storagetemp.dfs.core.windows.net: Invalid configuration value detected for fs.azure.account.key)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Using a notebook with these settings and running it, is not helping. Any ideea?&lt;/P&gt;&lt;P&gt;I added:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;service_credential = dbutils.secrets.get(scope="&amp;lt;secret-scope&amp;gt;",key="&amp;lt;service-credential-key&amp;gt;")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;spark.conf.set("fs.azure.account.auth.type.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net", "OAuth")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;spark.conf.set("fs.azure.account.oauth.provider.type.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net", "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;spark.conf.set("fs.azure.account.oauth2.client.id.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net", "&amp;lt;application-id&amp;gt;")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;spark.conf.set("fs.azure.account.oauth2.client.secret.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net", service_credential)&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;spark.conf.set("fs.azure.account.oauth2.client.endpoint.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net", "&lt;A href="https://login.microsoftonline.com/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/&lt;/A&gt;&amp;lt;directory-id&amp;gt;/oauth2/token")&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;in a notebook and after that I was running this notebook of the beginning of the MAIN notebook, using magic command:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;SPAN class=""&gt;%run&lt;/SPAN&gt; &lt;SPAN class=""&gt;"./conn"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class=""&gt;I mention that I CAN do .save(), I can do dbutils.fs.ls(location).&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT, if I add&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;in the Cluster Spark Config&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;fs.azure.account.auth.type.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net OAuth&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;fs.azure.account.oauth.provider.type.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;fs.azure.account.oauth2.client.id.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net &amp;lt;application-id&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;fs.azure.account.oauth2.client.secret.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net {{secrets/&amp;lt;secret-scope&amp;gt;/&amp;lt;service-credential-key&amp;gt;}}&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#FF0000"&gt;fs.azure.account.oauth2.client.endpoint.&amp;lt;storage-account&amp;gt;.dfs.core.windows.net &lt;A href="https://login.microsoftonline.com/" target="_blank" rel="noopener"&gt;https://login.microsoftonline.com/&lt;/A&gt;&amp;lt;directory-id&amp;gt;/oauth2/token&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;IT IS WORKING.&lt;/P&gt;&lt;P&gt;What I am doing wrong?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:25:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40901#M27254</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T07:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40927#M27257</link>
      <description>&lt;P&gt;is your workspace Unity enabled by any chance? Because Unity Catalog ignores Spark configuration settings when accessing data managed by external locations.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 10:50:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40927#M27257</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40933#M27258</link>
      <description>&lt;P&gt;Nope. Is not.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:02:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40933#M27258</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T11:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40937#M27260</link>
      <description>&lt;P&gt;strange.&amp;nbsp; I don't see the issue.&amp;nbsp; Perhaps a typo somewhere?&lt;/P&gt;&lt;P&gt;Can you test with putting the config directly in the notebook (instead of using %run)?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:07:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40937#M27260</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40938#M27261</link>
      <description>&lt;P&gt;Done and is not working.&lt;/P&gt;&lt;P&gt;Only with configuration in Cluster Spark Config is working.&lt;/P&gt;&lt;P&gt;I really don't understand.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:09:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40938#M27261</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T11:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40941#M27263</link>
      <description>&lt;P&gt;According to the docs it should work:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#azureserviceprincipal" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/storage/azure-storage#azureserviceprincipal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You are using a Service Principal I suppose?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:11:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40941#M27263</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T11:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40946#M27265</link>
      <description>&lt;P&gt;Yes, Service Principal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 11:43:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40946#M27265</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T11:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40969#M27270</link>
      <description>&lt;P&gt;The only things that come to mind are either:&lt;/P&gt;&lt;P&gt;- a typo/wrong value passed&lt;/P&gt;&lt;P&gt;- permission (so the spark conf is not actually updated)&lt;BR /&gt;Because it should work.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 13:01:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40969#M27270</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40993#M27276</link>
      <description>&lt;P&gt;I checked the notebook and what I have in spark config - NO typo&lt;/P&gt;&lt;P&gt;If is working when I set those in Spark Config, it should work also from notebook.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that is not working with these settings in notebook, is the CREATE DATABASE. Other things like .save(). dbutils.fs.ls(), .write() are working.&lt;/P&gt;&lt;P&gt;It is something else.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 13:54:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/40993#M27276</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T13:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41000#M27277</link>
      <description>&lt;P&gt;can you, for test purposes mount the external location to dbfs?&lt;BR /&gt;and then as path you use /mnt/&amp;lt;mount&amp;gt;/...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:08:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41000#M27277</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41003#M27278</link>
      <description>&lt;P&gt;Already did, works properly.&lt;/P&gt;&lt;P&gt;But, I cannot use anymore the mounting, because Databricks announced that mounting is not recommended to be used because soon will be deprecated..&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:11:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41003#M27278</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T14:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41005#M27279</link>
      <description>&lt;P&gt;correct (mainly for Unity though).&lt;BR /&gt;Hey how about you try with CREATE SCHEMA instead of DATABASE?&amp;nbsp; It should not make any difference, but since we are stuck anyway...&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:17:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41005#M27279</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T14:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41017#M27282</link>
      <description>&lt;P&gt;Tried, same error message.&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;AnalysisException&lt;/SPAN&gt;&lt;SPAN&gt;: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration for storage account storagetemp.dfs.core.windows.net: Invalid configuration value detected for fs.azure.account.key)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:40:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41017#M27282</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T14:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41018#M27283</link>
      <description>&lt;P&gt;ok.&lt;/P&gt;&lt;P&gt;Can you check &lt;A href="https://medium.com/@kyle.hale/troubleshooting-invalid-configuration-value-detected-for-fs-azure-account-key-6c6fcc67b217" target="_self"&gt;this link&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;Because I suspect something is wrong, and so dbrx uses the account key as a default (fs.azure.account.key)&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 14:54:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41018#M27283</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-08-22T14:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Hive db in Azure Databricks with the LOCATION parameter set to an ADLS GEN2 account fai</title>
      <link>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41023#M27284</link>
      <description>&lt;P&gt;Thank you for the link, is very useful, although not for me.&lt;/P&gt;&lt;P&gt;Everthing is set as it should be.&lt;/P&gt;&lt;P&gt;Still not working.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:30:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/create-a-hive-db-in-azure-databricks-with-the-location-parameter/m-p/41023#M27284</guid>
      <dc:creator>Mihai_Cog</dc:creator>
      <dc:date>2023-08-22T15:30:17Z</dc:date>
    </item>
  </channel>
</rss>

