这个问题可能是由Mesos和马拉松不同步引起的,但是GitHub上提到的解决方案对我不起作用。
当我找到孤立的任务时:
我所做的是:
ef169d8a-24fc-41d1-8b0d-c67718937a48-0000
下的所有孤立任务,
curl -XGET http://c196:5050/master/frameworks shows that framework is
unregistered_frameworks`:
{“框架”:"ef169d8a-24fc-41d1-8b0d-c67718937a48-0000","ef169d8a-24fc-41d1-8b0d-c67718937a48-0000","ef169d8a-24fc-41d1-8b0d-c67718937a48-0000“}No framework found with specified ID
那么,如何删除孤立的任务呢?
发布于 2016-10-20 18:19:43
有两种选择
- Download the code `git clone https://github.com/janisz/mesos-cookbook.git`
- Change dir `cd mesos-cookbook/4_understanding_frameworks`
- In `scheduler.go` change master for your URL
- If you want to mimic some other framework create `/tmp/framework.json` and fill it with [`FrameworkInfo`](https://github.com/janisz/mesos-cookbook/blob/master/4_understanding_frameworks/mesos.proto#L208) data:
{ "id":"","user":"","name":"failover_timeout":3600,“检查点”:true,"hostname":"","webui_url":"“}
-运行它,go run scheduler.go scheduler.pb.go mesos.pb.go
-获取所有任务的列表( curl localhost:9090
)
-删除curl -X的任务,删除"id“
failover_timeout
,这样Mesos就会为您删除这个任务。https://stackoverflow.com/questions/40098206
复制相似问题