Oozie 服务器无任何异常启动。尝试使用以下命令获取状态时,出现 404 错误。
$clusterUriStatus = "https://$clusterName.azurehdinsight.net:443/oozie/v2/admin/status"
$response = Invoke-RestMethod -Method Get -Uri $clusterUriStatus -Credential $creds -OutVariable $OozieServerStatus
来自服务器的错误消息:
Invoke-RestMethod : HTTP Status 404 - /oozie/v2/admin/status type 状态报告消息 /oozie/v2/admin/status description 请求的资源不可用。Apache Tomcat/6.0.36 At line: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