<?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 Trying to mount Azure Data Lake Storage Gen 2 to Azure Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2826#M104</link>
    <description>&lt;P&gt;I have validated many many many times all my credentials and I am still getting the following error (at the very end). ChatGPT said to basically recheck everything and I did. The one thing I didn't do was grant the permissions which I have since done and I am still having problems. Here is what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that the storage_account_name variable is correctly assigned with the name of your Azure Storage account. Double-check that the variable is defined and has the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify that the mount_point variable is defined and specifies a valid mount point path in Azure Databricks. The mount point should start with /mnt/ followed by a unique name or path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confirm that the configs dictionary variable is defined and populated with the necessary configuration settings. Ensure that all the required keys and values are present in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that the Azure AD application credentials (client ID, client secret, directory ID) used in the configs dictionary are valid and have the necessary permissions to access the Azure Data Lake Storage Gen2 account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas on what I can do? Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;ExecutionError                            Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;File &amp;lt;command-3548438897654738&amp;gt;:19&lt;/P&gt;&lt;P&gt;     10 configs = {&lt;/P&gt;&lt;P&gt;     11     "fs.azure.account.auth.type": "OAuth",&lt;/P&gt;&lt;P&gt;     12     "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",&lt;/P&gt;&lt;P&gt;   (...)&lt;/P&gt;&lt;P&gt;     15     "fs.azure.account.oauth2.client.endpoint": "https://login.microsoftonline.com/59bfdcb9-d634-447e-88ab-e561deb22047/oauth2/token"&lt;/P&gt;&lt;P&gt;     16 }&lt;/P&gt;&lt;P&gt;     18 # Mount the storage account&lt;/P&gt;&lt;P&gt;---&amp;gt; 19 dbutils.fs.mount(&lt;/P&gt;&lt;P&gt;     20   source=f"abfss://&lt;B&gt;{&lt;/B&gt;storage_account_name&lt;B&gt;}&lt;/B&gt;.dfs.core.windows.net/",&lt;/P&gt;&lt;P&gt;     21   mount_point=mount_point,&lt;/P&gt;&lt;P&gt;     22   extra_configs=configs&lt;/P&gt;&lt;P&gt;     23 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File /databricks/python_shell/dbruntime/dbutils.py:362, in DBUtils.FSHandler.prettify_exception_message.&amp;lt;locals&amp;gt;.f_with_exception_handling(*args, **kwargs)&lt;/P&gt;&lt;P&gt;    360 exc.__context__ = &lt;B&gt;None&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    361 exc.__cause__ = &lt;B&gt;None&lt;/B&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; 362 &lt;B&gt;raise&lt;/B&gt; exc&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 09:29:46 GMT</pubDate>
    <dc:creator>ChrisS</dc:creator>
    <dc:date>2023-06-20T09:29:46Z</dc:date>
    <item>
      <title>Trying to mount Azure Data Lake Storage Gen 2 to Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2826#M104</link>
      <description>&lt;P&gt;I have validated many many many times all my credentials and I am still getting the following error (at the very end). ChatGPT said to basically recheck everything and I did. The one thing I didn't do was grant the permissions which I have since done and I am still having problems. Here is what I have done so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure that the storage_account_name variable is correctly assigned with the name of your Azure Storage account. Double-check that the variable is defined and has the correct value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify that the mount_point variable is defined and specifies a valid mount point path in Azure Databricks. The mount point should start with /mnt/ followed by a unique name or path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confirm that the configs dictionary variable is defined and populated with the necessary configuration settings. Ensure that all the required keys and values are present in the dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check that the Azure AD application credentials (client ID, client secret, directory ID) used in the configs dictionary are valid and have the necessary permissions to access the Azure Data Lake Storage Gen2 account.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas on what I can do? Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;ExecutionError                            Traceback (most recent call last)&lt;/P&gt;&lt;P&gt;File &amp;lt;command-3548438897654738&amp;gt;:19&lt;/P&gt;&lt;P&gt;     10 configs = {&lt;/P&gt;&lt;P&gt;     11     "fs.azure.account.auth.type": "OAuth",&lt;/P&gt;&lt;P&gt;     12     "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",&lt;/P&gt;&lt;P&gt;   (...)&lt;/P&gt;&lt;P&gt;     15     "fs.azure.account.oauth2.client.endpoint": "https://login.microsoftonline.com/59bfdcb9-d634-447e-88ab-e561deb22047/oauth2/token"&lt;/P&gt;&lt;P&gt;     16 }&lt;/P&gt;&lt;P&gt;     18 # Mount the storage account&lt;/P&gt;&lt;P&gt;---&amp;gt; 19 dbutils.fs.mount(&lt;/P&gt;&lt;P&gt;     20   source=f"abfss://&lt;B&gt;{&lt;/B&gt;storage_account_name&lt;B&gt;}&lt;/B&gt;.dfs.core.windows.net/",&lt;/P&gt;&lt;P&gt;     21   mount_point=mount_point,&lt;/P&gt;&lt;P&gt;     22   extra_configs=configs&lt;/P&gt;&lt;P&gt;     23 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File /databricks/python_shell/dbruntime/dbutils.py:362, in DBUtils.FSHandler.prettify_exception_message.&amp;lt;locals&amp;gt;.f_with_exception_handling(*args, **kwargs)&lt;/P&gt;&lt;P&gt;    360 exc.__context__ = &lt;B&gt;None&lt;/B&gt;&lt;/P&gt;&lt;P&gt;    361 exc.__cause__ = &lt;B&gt;None&lt;/B&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; 362 &lt;B&gt;raise&lt;/B&gt; exc&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 09:29:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2826#M104</guid>
      <dc:creator>ChrisS</dc:creator>
      <dc:date>2023-06-20T09:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to mount Azure Data Lake Storage Gen 2 to Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2827#M105</link>
      <description>&lt;P&gt;Hi @Chris Sarrico​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 03:19:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2827#M105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-21T03:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to mount Azure Data Lake Storage Gen 2 to Azure Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2828#M106</link>
      <description>&lt;P&gt;Hi @Chris Sarrico​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please specify the container name before the storage account name like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the source looks like this. :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;source = "abfss://&lt;B&gt;&amp;lt;container-name&amp;gt;&lt;/B&gt;@&amp;lt;storage-account-name&amp;gt;.dfs.core.windows.net/"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dbfs/mounts#--mount-adls-gen2-or-blob-storage-with-abfs" target="test_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dbfs/mounts#--mount-adls-gen2-or-blob-storage-with-abfs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 04:14:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/trying-to-mount-azure-data-lake-storage-gen-2-to-azure/m-p/2828#M106</guid>
      <dc:creator>User16752245772</dc:creator>
      <dc:date>2023-06-21T04:14:51Z</dc:date>
    </item>
  </channel>
</rss>

