โ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 a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group