【发布时间】:2017-10-23 04:47:54
【问题描述】:
我有 mesos 和 chronos 环境,我想使用 chronos api 来监控作业状态,但是...
curl -L http://localhost:8080/leader
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 404 </title>
</head>
<body>
<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /leader. Reason:
<pre> Not Found</pre></p>
<hr /><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.3.z-SNAPSHOT</a><hr/>
</body>
</html>
它返回404给我,有人有想法吗? 其他功能工作正常。 API URL 为:chronos REST API DOC
【问题讨论】:
-
你能访问chronos UI/你确定它安装正确吗?
-
是的,我已经按照官方文档安装了它,它工作正常,这让我很困惑。
-
我有两个mesos+chronos集群,chronos版本分别是2.4和3.0.3,都返回404给我
-
@janisz,谢谢,看来你是对的,我在 chronos 包中找到了该文档,并且它有不同的 url,我在 chronos 2.4 集群上测试,结果如下:
curl -L -X GET chronos-node:8080/v1/scheduler/jobs 返回 404
curl -L -X GET chronos-node:8080/scheduler/jobs 返回正确结果
标签: mesos mesos-chronos