使用 Powershell 将文件从 FTP 复制到 ADLS

Copy file from FTP to ADLS using Powershell

我正在尝试使用 Powershell 将 FTP 中文件夹中的所有存档提取到 Azure Data Lake Store。我只能找到 documentation 从 ADLS 中或在 ADLS 中移动文件,而不是从 ADLS 之外的源移动文件。

我熟悉 Copy-Item,但我不知道如何访问 Destination 下的 ADLS(和输入凭据)。

Copy-Item -Path __ -Destination ___ -Force

原来你需要使用Import-AzureRmDataLakeStoreItem

Import-AzureRmDataLakeStoreItem -AccountName ___ -Path ____ -Destination ___

这允许您在 -Path 下设置 FTP 文件路径。