<?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: Shared cluster configuration that permits `dbutils.fs` commands in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3436#M481</link>
    <description>&lt;P&gt;Unfortunately the suggestion was not helpful—it is no mystery &lt;I&gt;what &lt;/I&gt;the error is (insufficient permissions to access the DBFS root location). What remains a mystery, and the point of my question, is whether there is a certain configuration of shared clusters that is required in order to make the DBFS root location accessible. I ask this question here in this forum because I have not yet found in &lt;A href="https://docs.databricks.com/clusters/index.html" alt="https://docs.databricks.com/clusters/index.html" target="_blank"&gt;the Databricks documentation&lt;/A&gt; a discussion of this question, and because &lt;A href="https://registry.terraform.io/providers/databricks/databricks/1.19.0/docs/resources/cluster" alt="https://registry.terraform.io/providers/databricks/databricks/1.19.0/docs/resources/cluster" target="_blank"&gt;the terraform provider I'm using&lt;/A&gt; does not list any cluster configuration options which seem relevant to making sure the DBFS root location (or any DBFS filesystem utils) are available on a shared cluster. &lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 23:48:44 GMT</pubDate>
    <dc:creator>Spencer_Kent</dc:creator>
    <dc:date>2023-06-16T23:48:44Z</dc:date>
    <item>
      <title>Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3433#M478</link>
      <description>&lt;P&gt;My workspace has a couple different types of clusters, and I'm having issues using the `dbutils` filesystem utilities when connected to a shared cluster. I'm hoping you can help me fix the configuration of the shared cluster so that I can actually use the dbutils filesystem commands. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workspace is set up to use Unity Catalog, and I'm not sure if that has anything to do with the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to `ls` the DBFS root location I get an "INSUFFICIENT_PERMISSIONS" Spark security exception:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="insufficient_permissions_on_shared_cluster"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/102i301BE242562E5158/image-size/large?v=v2&amp;amp;px=999" role="button" title="insufficient_permissions_on_shared_cluster" alt="insufficient_permissions_on_shared_cluster" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The cluster this happens on is a Shared cluster with the &lt;A href="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/cluster#data_security_mode" alt="https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/cluster#data_security_mode" target="_blank"&gt;data security mode&lt;/A&gt; set to "USER_ISOLATION" (by Terraform). It says Unrestricted in the screen shot below, but we set the data security mode in Terraform.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="shared_cluster_config"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/113i16EEF4C1517DA07F/image-size/large?v=v2&amp;amp;px=999" role="button" title="shared_cluster_config" alt="shared_cluster_config" /&gt;&lt;/span&gt;This error does &lt;B&gt;not&lt;/B&gt; occur on a Single User cluster with the Individual use policy:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="individual_use_cluster"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/104i09371B702DB9FC43/image-size/large?v=v2&amp;amp;px=999" role="button" title="individual_use_cluster" alt="individual_use_cluster" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me guidance on how to configure the shared cluster so that `dbutils.fs.ls("/")`  won't error with insufficient permissions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 23:57:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3433#M478</guid>
      <dc:creator>Spencer_Kent</dc:creator>
      <dc:date>2023-06-07T23:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3435#M480</link>
      <description>&lt;P&gt;Hi @Spencer Kent​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Kaniz Fatma​&amp;nbsp;​, and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 07:08:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3435#M480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-16T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3436#M481</link>
      <description>&lt;P&gt;Unfortunately the suggestion was not helpful—it is no mystery &lt;I&gt;what &lt;/I&gt;the error is (insufficient permissions to access the DBFS root location). What remains a mystery, and the point of my question, is whether there is a certain configuration of shared clusters that is required in order to make the DBFS root location accessible. I ask this question here in this forum because I have not yet found in &lt;A href="https://docs.databricks.com/clusters/index.html" alt="https://docs.databricks.com/clusters/index.html" target="_blank"&gt;the Databricks documentation&lt;/A&gt; a discussion of this question, and because &lt;A href="https://registry.terraform.io/providers/databricks/databricks/1.19.0/docs/resources/cluster" alt="https://registry.terraform.io/providers/databricks/databricks/1.19.0/docs/resources/cluster" target="_blank"&gt;the terraform provider I'm using&lt;/A&gt; does not list any cluster configuration options which seem relevant to making sure the DBFS root location (or any DBFS filesystem utils) are available on a shared cluster. &lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 23:48:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/3436#M481</guid>
      <dc:creator>Spencer_Kent</dc:creator>
      <dc:date>2023-06-16T23:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/55668#M30401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/51553"&gt;@Spencer_Kent&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Please go through this , &lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dbfs/unity-catalog" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dbfs/unity-catalog&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Shared access mode combines Unity Catalog data governance with Azure Databricks legacy table ACLs. Access to data in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;hive_metastore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is only available to users that have permissions explicitly granted.&lt;/P&gt;
&lt;P&gt;To interact with files directly using DBFS, you must have&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ANY FILE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;permissions granted. Because&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;ANY FILE&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;allows users to bypass legacy tables ACLs in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;hive_metastore&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and access all data managed by DBFS, Databricks recommends caution when granting this privilege.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clusters configured with Single User access mode have full access to DBFS, including all files in the DBFS root and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dbfs/mounts" data-linktype="relative-path" target="_blank"&gt;mounted data&lt;/A&gt;. DBFS root and mounts are available in this access mode, making it the choice for ML workloads that need access to Unity Catalog datasets.&lt;/P&gt;
&lt;P&gt;Databricks recommends using service principals with scheduled jobs and Single User access mode for production workloads that need access to data managed by both DBFS and Unity Catalog.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 10:57:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/55668#M30401</guid>
      <dc:creator>User16623639898</dc:creator>
      <dc:date>2023-12-22T10:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/57561#M30826</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm encountering a similar issue. We have a team of researchers utilizing a shared cluster without access to the Hive Metastore. I've looked through the documentation, but there doesn't seem to be a way to define or grant "ANY_FILE" during the cluster initialization process.&lt;BR /&gt;Moreover, what if Im looking to access the s3 bucket path itself , what is the approach to define it?&lt;BR /&gt;please advise&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 10:13:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/57561#M30826</guid>
      <dc:creator>yosinv</dc:creator>
      <dc:date>2024-01-17T10:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/58298#M31090</link>
      <description>&lt;P&gt;I could not find `ANY FILE` permission as well.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 01:15:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/58298#M31090</guid>
      <dc:creator>drii_cavalcanti</dc:creator>
      <dc:date>2024-01-24T01:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/58801#M31265</link>
      <description>&lt;P&gt;There are two ways to grant access to DBFS using ANY FILE:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;To User: GRANT SELECT ON ANY FILE TO '&amp;lt;user_mail_id&amp;gt;'&lt;/LI&gt;&lt;LI&gt;To Group: GRANT SELECT ON ANY FILE TO '&amp;lt;group_name&amp;gt;'"&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 31 Jan 2024 10:15:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/58801#M31265</guid>
      <dc:creator>Nikhil_G</dc:creator>
      <dc:date>2024-01-31T10:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76414#M35209</link>
      <description>&lt;P&gt;I have the same problem that I am receiving "No such file or directory" when trying to access a file in DBFS using a cluster in shared access mode. I am using shared access mode because I want to use table access controls.&lt;/P&gt;&lt;P&gt;I ran "GRANT ALL PRIVILEGES ON ANY FILE TO &amp;lt;user&amp;gt;" and "SHOW GRANTS ON ANY FILE" to verify the grant went through, but am still unable to access the file in DBFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/9"&gt;@Retired_mod&lt;/a&gt;&amp;nbsp;could you advise? Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 20:40:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76414#M35209</guid>
      <dc:creator>ec10826</dc:creator>
      <dc:date>2024-07-01T20:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76432#M35212</link>
      <description>&lt;P&gt;You can't access files on DBFS mounts using a Shared cluster. Either use a Unity Catalog Volume or use a Single user cluster.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 06:02:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76432#M35212</guid>
      <dc:creator>jacovangelder</dc:creator>
      <dc:date>2024-07-02T06:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76528#M35246</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/102253"&gt;@jacovangelder&lt;/a&gt;&amp;nbsp;&amp;nbsp;We are using Azure Gov so don't have access to Unity Catalog. What would you suggest we do to control certain users' access to data, since you can't use table access controls with Single user clusters?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 15:11:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76528#M35246</guid>
      <dc:creator>ec10826</dc:creator>
      <dc:date>2024-07-02T15:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Shared cluster configuration that permits `dbutils.fs` commands</title>
      <link>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76567#M35267</link>
      <description>&lt;P&gt;Can you not use a No Isolation Shared cluster with Table access controls enabled on workspace level?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 05:44:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/shared-cluster-configuration-that-permits-dbutils-fs-commands/m-p/76567#M35267</guid>
      <dc:creator>jacovangelder</dc:creator>
      <dc:date>2024-07-03T05:44:45Z</dc:date>
    </item>
  </channel>
</rss>

