<?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 Unzip multipart files in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unzip-multipart-files/m-p/48810#M28383</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Due to file size and file transfer limitation, we are receiving huge files compressed and split, in the format&lt;BR /&gt;&amp;nbsp; &amp;nbsp; FILE.z01, FILE.z02,...,FILE.zip&lt;/P&gt;&lt;P&gt;However, I can't find a way to unzip &lt;U&gt;multipart&lt;/U&gt; files using databricks.&lt;/P&gt;&lt;P&gt;I tried already some of the steps found on the web, such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;- [bash] cat FILE*.z* &amp;gt; FILE_FULL.zip &amp;amp;&amp;amp; unzip FILE_FULL.zip&lt;BR /&gt;&amp;nbsp;- [python] append files + use zipfile package&lt;BR /&gt;&amp;nbsp;- combination of the above&lt;/P&gt;&lt;P&gt;In all cases, the zips and zip parts are not recognized as proper files and don't get extracted.&lt;/P&gt;&lt;P&gt;The unzip command does not support officially multipart files (&lt;A href="https://linux.die.net/man/1/unzip" target="_blank" rel="noopener"&gt;unzip(1) - Linux man page (die.net)&lt;/A&gt;), and the only solution I found is to use it in conjunction with zip command (see unzip man above)&lt;/P&gt;&lt;P&gt;[bash]&amp;nbsp;zip -s- FILE*.z* -O FILE_FULL.zip &amp;amp;&amp;amp; unzip FILE_FULL.zip&lt;/P&gt;&lt;P&gt;However, &lt;EM&gt;zip&lt;/EM&gt; command is not available in databricks, and thus I could test it only locally.&lt;/P&gt;&lt;P&gt;I decided to ask it here because it can be useful for similar cases.&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 08:03:28 GMT</pubDate>
    <dc:creator>N_M</dc:creator>
    <dc:date>2023-10-10T08:03:28Z</dc:date>
    <item>
      <title>Unzip multipart files</title>
      <link>https://community.databricks.com/t5/data-engineering/unzip-multipart-files/m-p/48810#M28383</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Due to file size and file transfer limitation, we are receiving huge files compressed and split, in the format&lt;BR /&gt;&amp;nbsp; &amp;nbsp; FILE.z01, FILE.z02,...,FILE.zip&lt;/P&gt;&lt;P&gt;However, I can't find a way to unzip &lt;U&gt;multipart&lt;/U&gt; files using databricks.&lt;/P&gt;&lt;P&gt;I tried already some of the steps found on the web, such as&lt;/P&gt;&lt;P&gt;&amp;nbsp;- [bash] cat FILE*.z* &amp;gt; FILE_FULL.zip &amp;amp;&amp;amp; unzip FILE_FULL.zip&lt;BR /&gt;&amp;nbsp;- [python] append files + use zipfile package&lt;BR /&gt;&amp;nbsp;- combination of the above&lt;/P&gt;&lt;P&gt;In all cases, the zips and zip parts are not recognized as proper files and don't get extracted.&lt;/P&gt;&lt;P&gt;The unzip command does not support officially multipart files (&lt;A href="https://linux.die.net/man/1/unzip" target="_blank" rel="noopener"&gt;unzip(1) - Linux man page (die.net)&lt;/A&gt;), and the only solution I found is to use it in conjunction with zip command (see unzip man above)&lt;/P&gt;&lt;P&gt;[bash]&amp;nbsp;zip -s- FILE*.z* -O FILE_FULL.zip &amp;amp;&amp;amp; unzip FILE_FULL.zip&lt;/P&gt;&lt;P&gt;However, &lt;EM&gt;zip&lt;/EM&gt; command is not available in databricks, and thus I could test it only locally.&lt;/P&gt;&lt;P&gt;I decided to ask it here because it can be useful for similar cases.&lt;/P&gt;&lt;P&gt;Do you have any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 08:03:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unzip-multipart-files/m-p/48810#M28383</guid>
      <dc:creator>N_M</dc:creator>
      <dc:date>2023-10-10T08:03:28Z</dc:date>
    </item>
  </channel>
</rss>

