如何查询azure hdinsight hadoop cluster yarn timeline server
how to query the azure hdinsight hadoop cluster yarn timeline server
如何查询 Azure HDInsight Hadoop 集群中的时间线服务器以获取作业指标?
连接到 Azure 集群:
curl -u admin -sS -G "https://$CLUSTERNAME.azurehdinsight.net/api/v1/clusters/$CLUSTERNAME"
连接到时间线服务器:GET /ws/v1/timeline/
我需要一个连接这两个的查询来获取 Azure HDInsight Hadoop 集群的作业指标。提前致谢。
正在查询 Yarn 时间线服务器:
sshuser@clustername:~$ curl -u admin -G
https://clustername.azurehdinsight.net/ws/v1/timeline/
对于所有 运行 职位:
sshuser@clustername:~$ yarn application –list
对于所有作业状态:
sshuser@clustername:~$ yarn application –list -appStates ALL
对于所有已完成的作业:
sshuser@clustername:~$ yarn application –list -appStates FINISHED
从上面的结果中得到Application-Id:
sshuser@clustername:~$ curl -u admin -G
https://clustername.azurehdinsight.net/ws/v1/applicationhistory/apps/appID
如何查询 Azure HDInsight Hadoop 集群中的时间线服务器以获取作业指标?
连接到 Azure 集群:
curl -u admin -sS -G "https://$CLUSTERNAME.azurehdinsight.net/api/v1/clusters/$CLUSTERNAME"
连接到时间线服务器:GET /ws/v1/timeline/
我需要一个连接这两个的查询来获取 Azure HDInsight Hadoop 集群的作业指标。提前致谢。
正在查询 Yarn 时间线服务器: sshuser@clustername:~$ curl -u admin -G https://clustername.azurehdinsight.net/ws/v1/timeline/
对于所有 运行 职位: sshuser@clustername:~$ yarn application –list
对于所有作业状态: sshuser@clustername:~$ yarn application –list -appStates ALL
对于所有已完成的作业: sshuser@clustername:~$ yarn application –list -appStates FINISHED
从上面的结果中得到Application-Id: sshuser@clustername:~$ curl -u admin -G https://clustername.azurehdinsight.net/ws/v1/applicationhistory/apps/appID