2017-04-20 30 views
1

我需要从本地文件夹上传多个图像到Azure Data Lake Store。使用u在数据湖商店上传图像sql

我一直在寻找的链接:
https://blogs.msdn.microsoft.com/azuredatalake/2016/08/18/introducing-image-processing-in-u-sql/

我能够获得图像的细节,但我也想上传到Azure上的数据湖店多张图片。
请提出,是否有可能在U SQL或我需要使用任何其他方法相同?
如果您将共享任何相同的参考链接,这将是非常好的。

感谢

回答

1

使用PowerShell

# Log in to your Azure account 
Login-AzureRmAccount 

# Modify variables as required 
$DataLakeStoreAccount = #"<yourAccountNameHere>"; 
$DataLakeStorePath = "/Samples/Data"; 
$destinationFile = "/Samples/Data/Test.txt"; 
$localFile = "C:\Temp\Test.txt"; 


# upload file 
Import-AzureRmDataLakeStoreItem -AccountName $DataLakeStoreAccount -Path $localfile -Destination $destinationFile; 
# https://docs.microsoft.com/en-us/powershell/module/azurerm.datalakestore/import-azurermdatalakestoreitem?view=azurermps-3.8.0 

#verify 
Get-AzureRmDataLakeStoreChildItem -AccountName $DataLakeStoreAccount -Path $DataLakeStorePath; 
# https://docs.microsoft.com/en-us/powershell/module/azurerm.datalakestore/get-azurermdatalakestorechilditem?view=azurermps-3.8.0