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

时间:2016-11-23 02:05:44

标签: powershell azure-data-lake u-sql

如果我想向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脚本?

1 个答案:

答案 0 :(得分:2)