0

I would like to unzip a tgz file located on azure databricks file system.

 display(dbutils.fs.ls("dbfs:/my_data/MY_zipfile.tgz"))

I can see the file but how I can unzip it ?

It is an application file and I need to unzip it and compile it.

I tried this in databricks notebook:

  %sh
  unzip dbfs:/my_data/MY_zipfile.tgz

but, the file cannot be found.

It seems that the shell cannot access it ?

Thanks

user3448011
  • 1,469
  • 1
  • 17
  • 39

1 Answers1

0

I don't think that you can unzip tgz file . You can read this if you want to implement something of your own . How to load tar.gz files in streaming datasets?

HimanshuSinha
  • 1,650
  • 2
  • 6
  • 10