<?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 I move a single file larger than 100GB using dbtuils fs? in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79048#M7762</link>
    <description>&lt;P&gt;Hello. I have a file over 100GB. Sometimes this is on the cluster's local path, and sometimes it's on the volume.&lt;BR /&gt;And I want to send this to another path on the volume, or to the s3 bucket.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.fs.cp('file:///tmp/test.txt', '/Volumes/catalog/schema/path/').&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my code.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;However, when you want to send a file exceeding 100GB,&lt;/P&gt;&lt;PRE&gt;IllegalArgumentException: partNumber must be between 1 and 10000 inclusive, but is 10001&lt;/PRE&gt;&lt;P&gt;An error occurs.&lt;/P&gt;&lt;P&gt;According to what I found, dbutils (spark) divides files into blocks of 10mb (10,485,760 bytes) when transferring them to a volume or s3.&amp;nbsp;And an error seems to occur because 100GB requires more than 10,000 10MB blocks.&lt;/P&gt;&lt;P&gt;So I set spark.hadoop.fs.s3a.multipart.size to 104857600.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanmon_0-1721181332995.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9627i5AB7F9E3AF162E2B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="himanmon_0-1721181332995.png" alt="himanmon_0-1721181332995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I run dbutils.fs.cp it still seems to generate blocks of 10mb each.&lt;BR /&gt;And the same error occurs again.&lt;BR /&gt;This is because 10mb files are continuously created in the '/tmp/hadoop-root/s3a' .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanmon_1-1721185042042.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9628i56A8B7A629F45DB9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="himanmon_1-1721185042042.png" alt="himanmon_1-1721185042042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I misunderstanding something?&lt;/P&gt;&lt;P&gt;Or a file larger than 100GB cannot be moved with dbutils?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 17 Jul 2024 03:14:51 GMT</pubDate>
    <dc:creator>himanmon</dc:creator>
    <dc:date>2024-07-17T03:14:51Z</dc:date>
    <item>
      <title>Can I move a single file larger than 100GB using dbtuils fs?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79048#M7762</link>
      <description>&lt;P&gt;Hello. I have a file over 100GB. Sometimes this is on the cluster's local path, and sometimes it's on the volume.&lt;BR /&gt;And I want to send this to another path on the volume, or to the s3 bucket.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;dbutils.fs.cp('file:///tmp/test.txt', '/Volumes/catalog/schema/path/').&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is my code.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;However, when you want to send a file exceeding 100GB,&lt;/P&gt;&lt;PRE&gt;IllegalArgumentException: partNumber must be between 1 and 10000 inclusive, but is 10001&lt;/PRE&gt;&lt;P&gt;An error occurs.&lt;/P&gt;&lt;P&gt;According to what I found, dbutils (spark) divides files into blocks of 10mb (10,485,760 bytes) when transferring them to a volume or s3.&amp;nbsp;And an error seems to occur because 100GB requires more than 10,000 10MB blocks.&lt;/P&gt;&lt;P&gt;So I set spark.hadoop.fs.s3a.multipart.size to 104857600.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanmon_0-1721181332995.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9627i5AB7F9E3AF162E2B/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="himanmon_0-1721181332995.png" alt="himanmon_0-1721181332995.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, when I run dbutils.fs.cp it still seems to generate blocks of 10mb each.&lt;BR /&gt;And the same error occurs again.&lt;BR /&gt;This is because 10mb files are continuously created in the '/tmp/hadoop-root/s3a' .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanmon_1-1721185042042.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/9628i56A8B7A629F45DB9/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="himanmon_1-1721185042042.png" alt="himanmon_1-1721185042042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I misunderstanding something?&lt;/P&gt;&lt;P&gt;Or a file larger than 100GB cannot be moved with dbutils?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 17 Jul 2024 03:14:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79048#M7762</guid>
      <dc:creator>himanmon</dc:creator>
      <dc:date>2024-07-17T03:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can I move a single file larger than 100GB using dbtuils fs?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79056#M7763</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110584"&gt;@himanmon&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;This is caused because of S3 limit on segment count. The part files can be numbered only from 1 to 10000&lt;/P&gt;&lt;P&gt;After Setting spark.hadoop.fs.s3a.multipart.size to 104857600. , did you RESTART the cluster? Because it'll only work when the cluster is restarted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, before sending this file you can try to compress it using gzip&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 05:20:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79056#M7763</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2024-07-17T05:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can I move a single file larger than 100GB using dbtuils fs?</title>
      <link>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79169#M7764</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;,&amp;nbsp;Thank you for your answer.&lt;BR /&gt;Of course, I restarted the cluster. However, it still uses 10mb blocks.&lt;BR /&gt;I understand that compression could be an option, but there doesn't seem to be any solution when the compressed file exceeds 100GB.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 01:37:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/can-i-move-a-single-file-larger-than-100gb-using-dbtuils-fs/m-p/79169#M7764</guid>
      <dc:creator>himanmon</dc:creator>
      <dc:date>2024-07-18T01:37:02Z</dc:date>
    </item>
  </channel>
</rss>

