如何从驱动器读取zip文件

时间:2019-06-12 10:24:14

标签: pyspark databricks

我从数据驱动器中的Google驱动器中读取了zip文件,但出现错误:

Archive:  /tmp/dataset.csv.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /tmp/dataset.csv.zip or
        /tmp/dataset.csv.zip.zip, and cannot find /tmp/dataset.csv.zip.ZIP, period.
tail: cannot open 'dataseta1.csv' for reading: No such file or directory
rm: cannot remove 'dataseta1.csv': No such file or directory

1 个答案:

答案 0 :(得分:0)

打开您的Google云端硬盘

帐户>新建>更多>连接更多应用。

搜索ZIP Extractor并安装它。现在,您可以选择Google云端硬盘中的任何存档文件进行提取。选择该文件,然后右键单击以使用ZIP提取器打开以存储在云端硬盘中的ZIP文件