2014-04-22 39 views
0

Oozie服務器無任何例外地啓動。在嘗試使用下面的命令獲取狀態時,它給出了404錯誤。從服務器Oozie在HDInsight上:OozieServerStatus

$clusterUriStatus = "https://$clusterName.azurehdinsight.net:443/oozie/v2/admin/status" 
$response = Invoke-RestMethod -Method Get -Uri $clusterUriStatus -Credential $creds -OutVariable $OozieServerStatus 

錯誤消息:

調用-RestMethod:HTTP狀態404 -/Oozie的/ V2 /管理/狀態 類型狀態報告 消息/ Oozie的/ V2 /管理/狀態 描述請求的資源不可用。 Apache Tomcat/6.0.36 在線:1 char:13 + $ response = Invoke-RestMethod -Method Get -Uri $ clusterUriStatus -Credential $ cr ... + ~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ + CategoryInfo:InvalidOperation:(System.Net.HttpWebRequest:HttpWebRequest)[Invoke-RestMethod],WebExc eption + FullyQualifiedErrorId:WebCmdletWebResponseException,Microsoft .PowerShell.Commands.InvokeRestMethodCommand

回答

1

如果這是一個HDInsight 2.1集羣嘗試V1端點:

https://$clusterName.azurehdinsight.net:443/oozie/v1/admin/status 

v2端點應該適用於HDInsight 3.0,v1端點應該存在2.1和3.0。

相關問題