使用 Powershell 在本地提交 U-SQL 脚本

Submit U-SQL Script locally using Powershell

如果我想向 ADLA 帐户提交 U-SQL 脚本,我可以使用下面的 powershell cmdlet 来实现。

`
Submit-AzureRmDataLakeAnalyticsJob -Account $adlaAccountName -ScriptPath $USQLFile -Name $folder -DegreeOfParallelism $degreeOfParallelism -Verbose`

但是,我无法针对本地 ADLA 帐户提交脚本。我收到错误:

Submit-AzureRmDataLakeAnalyticsJob : Run Login-AzureRmAccount to login. At line:1 char:1 + Submit-AzureRmDataLakeAnalyticsJob -Account "local" -ScriptPath GetIn ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Submit-AzureRmDataLakeAnalyticsJob], PSInvalidOperationExceptio n + FullyQualifiedErrorId : InvalidOperation,Microsoft.Azure.Commands.DataLakeAnalytics.SubmitAzureDataLakeAnalyti csJob

如何针对本地 ADLA 帐户提交 U-SQL 脚本?

除了ADL Tools,我们还发布了独立的SDK。

https://www.nuget.org/packages/Microsoft.Azure.DataLake.USQL.SDK

并在此处记录:

https://docs.microsoft.com/en-us/azure/data-lake-analytics/data-lake-analytics-data-lake-tools-local-run

非常感谢, 于冬