Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2022 02:57 AM
Hey ajay,
You can follow this module to unzip your zip file.
To give your brief idea about this, it will unzip your file directly into your driver node storage.
So If your compressed data is inside DBFS then you first have to move that to drive node and then uncompress that using the following and again move that uncompressed data to DBFS.( dbutils.fs.cp for moving between driver and dbfs)
import subprocess
subprocess.Popen(f'unzip {file_name}.zip', shell=True)