2017-04-20 36 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