Transport Endpoint Not Connected - Mesos Slave / Master

后端 未结 4 1450
失恋的感觉
失恋的感觉 2021-01-04 00:02

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         


        
4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-04 00:24

    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:

    1. Remove $MESOS_WORK_DIR (/var/mesos in my case):

      sudo rm -rf /var/mesos
      
    2. 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.

提交回复
热议问题