简体   繁体   中英

Unable to start mesos-slave after adding containerizer setting on slave

I want to run docker container through marathon on mesos cluster so I added docker in mesos-slave containerizers configuration with below command.

echo 'docker,mesos' > /etc/mesos-slave/containerizers

After change mesos-slave its not starting. I am getting error

Insufficient version of Docker! Please upgrade to >= 1.0.0' in slave logs while restarting: Here below is complete log

May 19 15:24:09 flo-doc-nfr-b2b-27 mesos-slave[18055]: W0519 15:24:04.174897 18055 logging.cpp:81] RAW: Received signal SIGTERM from process 19232 of user 0; exiting
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: I0519 15:24:10.360828 19275 logging.cpp:172] INFO level logging started!
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: I0519 15:24:10.361471 19275 main.cpp:156] Build: 2015-05-05 06:16:58 by root
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: I0519 15:24:10.361518 19275 main.cpp:158] Version: 0.22.1
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: I0519 15:24:10.361543 19275 main.cpp:161] Git tag: 0.22.1
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: I0519 15:24:10.361565 19275 main.cpp:165] Git SHA: d6309f92a7f9af3ab61a878403e3d9c284ea87e0
May 19 15:24:10 flo-doc-nfr-b2b-27 mesos-slave[19275]: Failed to create a containerizer: Could not create DockerContainerizer: Insufficient version of Docker! Please upgrade to >= 1.0.0

Below is docker version details on mesos-slave:

Client:

  • Version: 1.11.1
  • API version: 1.23
  • Go version: go1.5.4
  • Git commit: 5604cbe
  • Built: Tue Apr 26 23:20:46 2016
  • OS/Arch: linux/amd64

Server:

  • Version: 1.11.1
  • API version: 1.23
  • Go version: go1.5.4
  • Git commit: 5604cbe
  • Built: Tue Apr 26 23:20:46 2016
  • OS/Arch: linux/amd64

Mesos version on slave: 0.22.1

If I remove containerizers configuration from slave then its working fine. Mesos, Marathon, Docker are running as service on nodes.

I even tried downgrading mesos to 0.21.1 & docker to 1.9.0 but getting same error.

Can someone please help me on this?

Thanks!! Sumit

I think you need to use one of 0.24.1, 0.23.1, 0.22.2 or 0.21.2 due to MESOS-2986 .

Try to build mesos from source rather than using debs. Here is pretty straightforward tutorial how to do it.

# Install the packages.
sudo apt-get install -qq tar wget openjdk-7-jdk build-essential python-dev libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev
# Download the source
wget http://www.apache.org/dist/mesos/0.28.1/mesos-0.28.1.tar.gz
tar -zxf mesos-0.28.1.tar.gz
# Build Mesos
cd mesos-0.28.1
mkdir build
cd build
../configure
make -j 8

EDIT:

Marathon require libmesos to be placed in the system so after building Mesos from source ensure proper lib will be used. Below extract from documentation

MESOS_NATIVE_JAVA_LIBRARY: bin/start searches the common installation paths, /usr/lib and /usr/local/lib , for the Mesos native library. If the library lives elsewhere in your configuration, set the environment variable MESOS_NATIVE_JAVA_LIBRARY to its full path.

For example:

$ MESOS_NATIVE_JAVA_LIBRARY=/Users/bob/libmesos.dylib ./bin/start --master local --zk zk://localhost:2181/marathon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM