1

新しいストレージ アカウントを作成し、Windows Azure で HDInsight クラスターをプロビジョニングしました。ただし、Windows Azure Powershell でクラスターに関連するコマンドを実行しようとすると、次のエラーが発生します。

PS C:\> Get-AzureHDInsightCluster -Name $clusterName
Get-AzureHDInsightCluster : Request failed with code:Unauthorized
Content:<Error xmlns="http://schemas.microsoft.com/windowsazure"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><Code>AuthenticationFailed</Code><Message>A security token
validation error occured for the received JWT token.</Message></Error>
At line:1 char:1
+ Get-AzureHDInsightCluster -Name $clusterName
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzureHDInsightCluster], HttpLayerException
    + FullyQualifiedErrorId : Microsoft.Hadoop.Client.HttpLayerException,Microsoft.WindowsAzure.Management.HDInsight.C
   mdlet.PSCmdlets.GetAzureHDInsightClusterCmdlet

私は HDInsight をまったく初めて使用しますが、このコマンドの前にスクリプトを実行して Azure アカウントを追加し、このページからサブスクリプション名、ストレージ アカウント名、およびコンテナー名の変数を作成しました。

このエラーの意味を知っていますか? そして、それを修正する方法は?このWeb サイトをフォローした後、Pig コマンドでスクリプトを実行しようとしています。

4

1 に答える 1

1

PowerShell 環境が正しく設定されていないようです。まず、GetAzureSubscription を使用して Azure サブスクリプションを追加する必要があります。参照: http://www.windowsazure.com/en-us/documentation/articles/install-configure-powershell/#Connect

于 2014-02-17T22:47:52.203 に答える