1
我在Windows Azure上創建了新的存儲帳戶並設置了HDInsight羣集。然而,當我嘗試運行有關羣集上的Windows Azure PowerShell的任何命令,我收到以下錯誤:使用JWT令牌的安全令牌驗證錯誤 - HDInsight
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帳戶,請從this頁面爲訂閱名稱,存儲帳戶名稱和容器名稱創建變量。
你知道這個錯誤是什麼意思嗎?以及如何解決它?我試圖在遵循this網站後使用Pig命令運行腳本。
謝謝你的提示,西蒙。我使用了「Add-AzureAccount」,它似乎連接到我的訂閱,並且我能夠使用「Get-AzureSubscription」驗證名稱。任何想法我可能會錯過什麼? – m00nbeam360
我可能會誤解,但如果此答案無助於您解決問題 - 儘管提示可能確實有用,但不應將其標記爲最終解決方案,因爲它可能會大大降低從其他人獲得更多答案的機會貢獻者。相反,upvote可能是更好的選擇。 –