gpt4 book ai didi

azure - 我们可以使用 Azure CLI 将文件上传到 Azure Data Lake Storage Gen2

转载 作者:行者123 更新时间:2023-12-03 04:49:54 25 4
gpt4 key购买 nike

我想做的就是使用 Azure CLI(通过 ` 命令)将文件从 Prime 上传到 Azure Data Lake Storage Gen2,但出现连接错误!我可以使用 Azure CLI 来实现这一点吗?或者我必须使用其他工具?PS:我无法使用 Azure 数据工厂,我希望我的作业从我的 Prime 上运行,而不是从云中运行!谢谢。

azure.datalake.store.exceptions.DatalakeRESTException:  HTTP error: 
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='storageAccount.azuredatalakestore.net', port=443):
Max retries exceeded with url: /webhdfs/v1/my-file-system/data.csv?OP=GETFILESTATUS&api-version=2018-05-01
(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fc7ed169c50>:
Failed to establish a new connection: [Errno -2] Name or service not known')

最佳答案

不,第 2 代文件系统的 Azure CLI 不可用,请参阅此 link .

enter image description here

如果您想上传文件,这里有两种解决方法供您引用。

  1. 使用Azure Storage Explorer

  2. 使用AzCopy v10 ,请注意,仅 v10 支持 Azure Data Lake Storage Gen2 API。使用 myaccount.dfs.core.windows.net 作为 URI 来调用 ADLS Gen2 API。

关于azure - 我们可以使用 Azure CLI 将文件上传到 Azure Data Lake Storage Gen2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54731300/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com