I\'m trying to connect a Mesos slave to its master. Whenver the slave tries to connect to the master, I get the following message:
I0806 16:39:59.090845 93
I've run into this error in the logs when upgrading mesos versions (e.g. 0.20.0 -> 0.27.0). Sometimes the data from the previous version is incompatible with other versions.
Here is how I remedied it:
First ensure all nodes have the mesos-master service stopped:
sudo service mesos-master stop
Then clear out all potential old data:
Remove $MESOS_WORK_DIR
(/var/mesos
in my case):
sudo rm -rf /var/mesos
Clear our mesos data in ZooKeeper:
$ zkCli.sh
WatchedEvent state:SyncConnected type:None path:null
[zk: localhost:2181(CONNECTED) 0] rmr /mesos
[zk: localhost:2181(CONNECTED) 0] quit
Quitting...
After doing these steps I started the mesos-master service on all nodes and it came back online.