<?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 how to create volume using databricks cli commands in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/how-to-create-volume-using-databricks-cli-commands/m-p/59075#M6443</link>
    <description>&lt;P&gt;I am new to using volumes on databricks. Is there a way to create volume using CLI commands.&lt;/P&gt;&lt;P&gt;On the similar note, is there a way to create DBFS directories and subdirectories using single command.&lt;/P&gt;&lt;P&gt;for example: I want to copy file here dbfs:/FileStore/Test/Test1/ but neither Test exists nor Test1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I create both using CLI in the most efficient way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2024 18:33:38 GMT</pubDate>
    <dc:creator>pshuk</dc:creator>
    <dc:date>2024-02-02T18:33:38Z</dc:date>
    <item>
      <title>how to create volume using databricks cli commands</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-create-volume-using-databricks-cli-commands/m-p/59075#M6443</link>
      <description>&lt;P&gt;I am new to using volumes on databricks. Is there a way to create volume using CLI commands.&lt;/P&gt;&lt;P&gt;On the similar note, is there a way to create DBFS directories and subdirectories using single command.&lt;/P&gt;&lt;P&gt;for example: I want to copy file here dbfs:/FileStore/Test/Test1/ but neither Test exists nor Test1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;how can I create both using CLI in the most efficient way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 18:33:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-create-volume-using-databricks-cli-commands/m-p/59075#M6443</guid>
      <dc:creator>pshuk</dc:creator>
      <dc:date>2024-02-02T18:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to create volume using databricks cli commands</title>
      <link>https://community.databricks.com/t5/get-started-discussions/how-to-create-volume-using-databricks-cli-commands/m-p/59205#M6444</link>
      <description>&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt; Creates a new volume.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;The user could create either an external volume or a managed volume. An&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;external volume will be created in the specified external location, while a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;managed volume will be located in the default location which is specified by&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;the parent schema, or the parent catalog, or the Metastore.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;For the volume creation to succeed, the user must satisfy following&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;conditions: - The caller must be a metastore admin, or be the owner of th&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;parent catalog and schema, or have the **USE_CATALOG** privilege on the parent&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;catalog and the **USE_SCHEMA** privilege on the parent schema. - The caller&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;must have **CREATE VOLUME** privilege on the parent schema.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p2"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;For an external volume, following conditions also need to satisfy - The caller&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;must have **CREATE EXTERNAL VOLUME** privilege on the external location. -&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;There are no other tables, nor volumes existing in the specified storage&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;location. - The specified storage location is not under the location of other&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;tables, nor volumes, or catalogs or schemas.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Usage:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt; databricks volumes create CATALOG_NAME SCHEMA_NAME NAME VOLUME_TYPE&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;As for creating DBFS directories and subdirectories, you can use the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;dbfs&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;CLI command. Here's an example of creating the directories&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;Test&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;Test1&lt;/CODE&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;bash&lt;BR /&gt;databricks fs mkdirs dbfs:/FileStore/Test/Test1/&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;This command creates both the&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;Test&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="c-mrkdwn__code" data-stringify-type="code"&gt;Test1&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;directories if they do not already exist.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2024 17:31:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/how-to-create-volume-using-databricks-cli-commands/m-p/59205#M6444</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2024-02-03T17:31:36Z</dc:date>
    </item>
  </channel>
</rss>

