<?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 Can ADLS be mounted in DBFS using only ADLS account key? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21532#M14694</link>
    <description>&lt;P&gt;I realise this is not an optimal configuration but I'm trying to pull together a POC and I'm not at the point that I wish to ask the AAD admins to create an application for OAuth authentication.&lt;/P&gt;&lt;P&gt;I have been able to use direct references to the ADLS container but when I try to mount the container I get a java.lang.NullPointerException: authEndpoint error. While I searched I couldn't find any examples of actually mounting using just the storage account key. Is this possible and if so, how do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2022 01:35:15 GMT</pubDate>
    <dc:creator>Ashley1</dc:creator>
    <dc:date>2022-05-04T01:35:15Z</dc:date>
    <item>
      <title>Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21532#M14694</link>
      <description>&lt;P&gt;I realise this is not an optimal configuration but I'm trying to pull together a POC and I'm not at the point that I wish to ask the AAD admins to create an application for OAuth authentication.&lt;/P&gt;&lt;P&gt;I have been able to use direct references to the ADLS container but when I try to mount the container I get a java.lang.NullPointerException: authEndpoint error. While I searched I couldn't find any examples of actually mounting using just the storage account key. Is this possible and if so, how do I do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashley&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 01:35:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21532#M14694</guid>
      <dc:creator>Ashley1</dc:creator>
      <dc:date>2022-05-04T01:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21533#M14695</link>
      <description>&lt;P&gt;Here's a helper function I use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;def mount_blob_storage(blob_uri: str, secret: str, mnt_point: str) -&amp;gt; str:
    """ Mount Azure Blob onto databricks.
  
    References: 
    - Mounting blob storage: &lt;A href="https://docs.databricks.com/data/data-sources/azure/azure-storage.html" target="test_blank"&gt;https://docs.databricks.com/data/data-sources/azure/azure-storage.html&lt;/A&gt;
&amp;nbsp;
    Parameters
    -----------
      blob_uri: str
          uri to blob storage container
      secret: str
          blob secret key for access
      mnt_point: str
          mount point in case do not want to use name of container
&amp;nbsp;
    Return
    --------
      mnt: str
          path to mounted storage in Databricks File System
  """
    
    # Get container and account
    container, account = get_storage_account_container(blob_uri)
    
    # Define mount point
       mnt = "/mnt/{}".format(mnt_point)
    
    dbutils.fs.mount(
      source = blob_uri,
      mount_point = mnt,
      extra_configs = {
        "fs.azure.account.key.{}.blob.core.windows.net".format(account): 
        secret
  })
        
    return mnt&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;While the reference points to instructions to mount a blob storage account, the same method should work for ADLS.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 02:00:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21533#M14695</guid>
      <dc:creator>mradassaad</dc:creator>
      <dc:date>2022-05-04T02:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21534#M14696</link>
      <description>&lt;P&gt;Perfect, thanks mradassaad. It didn't work for initially as I was using 'abfss:' protocol and .dfs.core.windows.net (instead of .blob.core.windows.net) from another example. Once I changed these it worked perfectly.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 04:32:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21534#M14696</guid>
      <dc:creator>Ashley1</dc:creator>
      <dc:date>2022-05-04T04:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21535#M14697</link>
      <description>&lt;P&gt;The problem is that you will use it as regular blob storage in such a case. ADLS, to use all its advantages of it, require two protocols. Here I explained that (that's why two private links are required):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/s/feed/0D53f00001eQGOHCA4" target="test_blank"&gt;https://community.databricks.com/s/feed/0D53f00001eQGOHCA4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe just send that manual to the admin to do that correctly. Alternatively, you can use the active directory passthrough in the premium version.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 07:22:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21535#M14697</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-05-04T07:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21536#M14698</link>
      <description>&lt;P&gt;Hey there @Ashley Betts​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question. And you found the solution.&lt;/P&gt;&lt;P&gt;This is awesome!&lt;/P&gt;&lt;P&gt;Would you be happy to mark the answer as best so that other members can find the solution more quickly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:41:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21536#M14698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-04T16:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can ADLS be mounted in DBFS using only ADLS account key?</title>
      <link>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21537#M14699</link>
      <description>&lt;P&gt;Thanks Hubert, I've bookmarked your article for future reference.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2022 01:07:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/can-adls-be-mounted-in-dbfs-using-only-adls-account-key/m-p/21537#M14699</guid>
      <dc:creator>Ashley1</dc:creator>
      <dc:date>2022-05-06T01:07:22Z</dc:date>
    </item>
  </channel>
</rss>

