<?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: Unable to unpack or read rar file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122808#M46878</link>
    <description>&lt;P&gt;Thank you! this solved my problem&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 12:26:33 GMT</pubDate>
    <dc:creator>TechExplorer</dc:creator>
    <dc:date>2025-06-25T12:26:33Z</dc:date>
    <item>
      <title>Unable to unpack or read rar file</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122685#M46837</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm encountering an issue with the following code when trying to unpack or read a RAR file in Databricks:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;with rarfile.RarFile(s3_path) as rf:
    for file_info in rf.infolist():
        with rf.open(file_info) as file:
            file_content = io.BytesIO(file.read())
            df = pd.read_csv(file_content, nrows=10)
            display(df)&lt;/LI-CODE&gt;&lt;P&gt;The error message I receive is:&amp;nbsp;"cannot find working tool".&lt;/P&gt;&lt;P&gt;Has anyone successfully managed to unpack or read a RAR file using&amp;nbsp;rarfile.RarFile&amp;nbsp;in Databricks? Any insights or alternative approaches would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 13:08:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122685#M46837</guid>
      <dc:creator>TechExplorer</dc:creator>
      <dc:date>2025-06-24T13:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unpack or read rar file</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122689#M46839</link>
      <description>&lt;P&gt;The direct use of rarfile.RarFile in Databricks often fails with errors such as "cannot find working tool" because the rarfile Python library requires an underlying system utility (unrar or unar) to be available on the host machine. In typical Databricks environments, especially on shared or managed clusters, these system utilities are not pre-installed, which is the root cause of your error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="_1t7bu9h9"&gt;Install unrar on your cluster (only possible on single-user/dedicated clusters): &lt;CODE&gt;
%sh apt-get update &amp;amp;&amp;amp; apt-get install -y unrar
&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI class="_1t7bu9h9"&gt;Once installed, confirm the unrar command is available: &lt;CODE&gt;
%sh which unrar
&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI class="_1t7bu9h9"&gt;Then rerun your Python code using rarfile.RarFile. The rarfile package should now find the system tool and proceed to extract files&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 14:06:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122689#M46839</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-06-24T14:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unpack or read rar file</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122808#M46878</link>
      <description>&lt;P&gt;Thank you! this solved my problem&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 12:26:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/122808#M46878</guid>
      <dc:creator>TechExplorer</dc:creator>
      <dc:date>2025-06-25T12:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to unpack or read rar file</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/131562#M49138</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88823"&gt;@Walter_C&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I am also using this unrar utility but the problem it is a proprietary software and i am working for a client and this license could cause issues. What is the alternative to unrar so that we eliminate the risk of any legal compliance.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 16:26:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-unpack-or-read-rar-file/m-p/131562#M49138</guid>
      <dc:creator>Upendra_Dwivedi</dc:creator>
      <dc:date>2025-09-10T16:26:16Z</dc:date>
    </item>
  </channel>
</rss>

