我正在使用
az storage fs file download
下载 parquet
目录的内容,如下所示:
az storage fs file download
--path myname/1/batch-repo/form/Fulfillment/2022/01/02/batch-form-Fulfillment.parquet/
--account-name my-storage-account --f my-container
已尝试下载,但显然
az cli
不知道这是镶木地板,无法处理它 - 无论是目录级别还是单个文件:
ValueError:此管道没有 RawDeserializer 策略;无法反序列化
是否有任何解决方法来下载
parquet
文件的内容?
从我这边复制后,我在使用与您相同的脚本下载目录时收到相同的错误。
我可以看到各个文件正在使用以下脚本下载。
az storage fs file download -f container --path dir1/part-00004-a9e77425-5fb4-456f-ba52-f821123bd193-c000.snappy.parquet --account-name <ACCOUNT_NAME> --account-key "<ACCOUNT_KEY>"
但是,如果您尝试在目录级别下载,则必须使用
az storage fs directory download
。以下是对我有用的完整脚本。
az storage fs directory download -f container -d folder1 --path dir1 --account-name adls76224157 --account-name <ACCOUNT_NAME> --account-key "<ACCOUNT_KEY>"
下面是我的文件结构