Search code examples
clouderamesos

Cloudera Mesos - When mesos-slave is stopped, current job get in 'LOST' status


Cloudera Mesos - When mesos-slave is stopped it stops any further job processing. However, if a job is currently in progress, it gets in 'LOST' status. How to prevent it? Also, how can i inform mesos to complete the current job and then shutdown the mesos-slave? Thanks


Solution

  • There is Maintenace operator API in Mesos where you can ask Mesos to drain node (finish all tasks) and then turn it off but this feature must be enabled in a framework you are using.

    http://mesos.apache.org/documentation/latest/maintenance/