12-08-2022 10:17 PM
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)
12-09-2022 02:43 AM
Is it community edition or a commercial one?
12-09-2022 02:47 AM
It's commercial
12-09-2022 02:49 AM
bur generally try that library to unzip
import zipfile
12-09-2022 02:52 AM
Thanks, will try
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)
12-09-2022 03:00 AM
Thanks @Vivek Rawat it's worked.
06-13-2023 11:41 PM
Thank you sir, I will try it.
Thank you sir, I will try it. I discovered a valuable resource look these up by choose the greatest essay writing service, this website offers in-depth reviews of a number of them.
Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections.
Click here to register and join today!
Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.