Mesos 安裝

整個過程可以直接看官網

http://mesos.apache.org/gettingstarted/

1.下載源碼

http://mesos.apache.org/downloads/

2.安裝依賴

Ubuntu 14.04
這裏用的openjdk7.

# Update the packages.
$ sudo apt-get update

# Install a few utility tools.
$ sudo apt-get install -y tar wget git

# Install the latest OpenJDK.
$ sudo apt-get install -y openjdk-7-jdk

# Install autotools (Only necessary if building from git repository).
$ sudo apt-get install -y autoconf libtool

# Install other Mesos dependencies.
$ sudo apt-get -y install build-essential python-dev libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev

3.Building Mesos

# Change working directory.
$ cd mesos

# Bootstrap (Only required if building from git repository).
$ ./bootstrap

# Configure and build.

$ ./configure
$ make

完了以後最好運行下check

# Run test suite.
$ make check

# Install (Optional).
$ make install

4. 起服務

# Start mesos master (Ensure work directory exists and has proper permissions).
$ ./bin/mesos-master.sh --ip=0.0.0.0 --work_dir=/var/lib/mesos

# Start mesos agent (Ensure work directory exists and has proper permissions).
$ ./bin/mesos-agent.sh --master=0.0.0.0:5050 --work_dir=/var/lib/mesos

# Visit the mesos web page.
$ http://<ip>:5050

5.mesos架構

mesos架構

master下面掛了幾個agent,會給master上報資源信息.

framework包含了兩個概念:

  • scheduler 調度器
  • agent上面的executor.

關於framework具體怎樣運行還有下面的圖來表達這個過程:

這裏寫圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章