Skip to content

Instantly share code, notes, and snippets.

@tyagiakhilesh
Created January 11, 2018 07:21
Show Gist options
  • Save tyagiakhilesh/83f88aa89f1081015c53bf5415543e4f to your computer and use it in GitHub Desktop.
Save tyagiakhilesh/83f88aa89f1081015c53bf5415543e4f to your computer and use it in GitHub Desktop.
I tried to do away the task with
```
KILL Request (JSON):
POST /api/v1/scheduler HTTP/1.1
Host: masterhost:5050
Content-Type: application/json
Mesos-Stream-Id: 130ae4e3-6b13-4ef4-baa9-9f2e85c3e9af
{
"framework_id" : {"value" : "12220-3440-12532-2345"},
"type" : "KILL",
"kill" : {
"task_id" : {"value" : "12220-3440-12532-my-task"},
"agent_id" : {"value" : "12220-3440-12532-S1233"}
}
}
KILL Response:
HTTP/1.1 202 Accepted
```
But to no avail. So taking the matters in my own hands.
* Stop all salves;
* Clean slaves data ```rm -rf /var/lib/mesos/*``` on each of the slave
* Stop master;
* Clean master data ```rm -rf /var/lib/mesos/* ```*
* Stop marathon
* Clear zookeeper entries for marathon and mesos
```
echo rmr /marathon | /opt/mesosphere/zookeeper/bin/zkCli.sh
echo rmr /mesos | /opt/mesosphere/zookeeper/bin/zkCli.sh
```
* Bring marathon, mesos master and all slaves up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment