Skip to content

Instantly share code, notes, and snippets.

@bergerx
Created June 30, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bergerx/a03f31ff08c5e0ed7483 to your computer and use it in GitHub Desktop.
Save bergerx/a03f31ff08c5e0ed7483 to your computer and use it in GitHub Desktop.
ubuntu@ubuntu1:~$ sudo mkdir /etc/mesos-slave/attributes
ubuntu@ubuntu1:~$ echo attribute-value-here | sudo tee /etc/mesos-slave/attributes/attribute-name-here
ubuntu@ubuntu1:~$ sudo service mesos-slave restart
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: Failed to perform recovery: Incompatible slave info detected.
...
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: ------------------------------------------------------------
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: To remedy this do as follows:
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: Step 1: rm -f /tmp/mesos/meta/slaves/latest
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: This ensures slave doesn't recover old live executors.
Jun 26 08:53:47 ubuntu1 mesos-slave[789]: Step 2: Restart the slave.
Jun 26 08:53:47 ubuntu1 kernel: [2378735.757826] init: mesos-slave main process (789) terminated with status 1
Jun 26 08:53:47 ubuntu1 kernel: [2378735.757840] init: mesos-slave respawning too fast, stopped
@bergerx
Copy link
Author

bergerx commented Jun 30, 2015

sudo touch /etc/mesos-slave/?strict

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment