使用 az dls fs upload 命令上传 Azure Data Lake Store 数据
Azure Data Lake Store data upload using az dls fs upload command
我正在尝试通过特定的 shell 脚本上传一组文件夹。
文件夹结构如下:
parentfolder/folder1
parentfolder/folder2
所以我正在从父文件夹做一个
for directory in `find . -type d`
找到文件夹列表并执行
az dls fs upload --account $adls_account --source-path $new_src_dir --destination-path $dest_dir$file_name --overwrite --thread-count $thread_count --debug
但是,我在上传过程中遇到了一个问题。第一次上传完成后,抛出错误:
Please run 'az account set' to select active account.
Failure in uploading file to Data Lake Store
能不能帮我找出真正的错误。我已经完成了 az_login 然后开始了 for 循环。
谢谢,
阿俊
请尝试 运行 这个命令 az account set --subscription <name or id>
,然后 运行 你的脚本。
我正在尝试通过特定的 shell 脚本上传一组文件夹。 文件夹结构如下: parentfolder/folder1 parentfolder/folder2
所以我正在从父文件夹做一个
for directory in `find . -type d`
找到文件夹列表并执行
az dls fs upload --account $adls_account --source-path $new_src_dir --destination-path $dest_dir$file_name --overwrite --thread-count $thread_count --debug
但是,我在上传过程中遇到了一个问题。第一次上传完成后,抛出错误:
Please run 'az account set' to select active account.
Failure in uploading file to Data Lake Store
能不能帮我找出真正的错误。我已经完成了 az_login 然后开始了 for 循环。
谢谢, 阿俊
请尝试 运行 这个命令 az account set --subscription <name or id>
,然后 运行 你的脚本。