官术网_书友最值得收藏!

  • Apache Mesos Cookbook
  • David Blomquist Tomasz Janiszewski
  • 420字
  • 2021-07-15 17:04:27

How to do it...

  1. Browse to the following location: http://mesos.apache.org/downloads/.
  2. Download the TAR file for the most recent stable release of Mesos. For example, to download Mesos version 1.0.1:
$ wget http://www.apache.org/dist/mesos/1.0.1/mesos-1.0.1.tar.gz
  1. Extract the contents of the TAR file. For example, to extract the Mesos 1.0.1 TAR file:
$ tar xvzf mesos-1.0.1.tar.gz 
  1. Change the directory to the extracted TAR file directory created in the previous step, for example:
$ cd mesos-1.0.1
  1. Create the build directory:
$ mkdir build
  1. Change directory to the build directory:
$ cd build  
  1. Configure the Mesos build script. You can run ../configure --help to see all the available configuration options. Refer to the There's more... section at the end of this recipe for more configuration tips:
  $ ../configure
  1. Build the Mesos binaries (executing 'make -j <number of cores> V=0 will decrease both the build time and log verbosity on multicore systems). Refer to the There's more... section at the end of this recipe for more build tips:
$ make  
  1. Optional: Run some tests:
$ make check
  1. Optional: Execute the make install command if you would like to install the Mesos binaries and libraries in /usr/local/ and add them to the system path. Mesos can also be installed in other locations or run directly from the build directory. Refer to the There's more... section at the end of this recipe for instructions on installing Mesos to alternative locations, as well as for other installation tips:
$ sudo make install
  1. Optional: For Ubuntu only, create links to the Mesos libraries if you chose the default installation to /usr/local:
$ sudo ldconfig  
  1. At this point, you can start Mesos to do some basic testing. To start the Mesos master and agent daemons, first create the mesos working directory:
$ sudo mkdir /var/lib/mesos  
  1. Change into the Mesos source build directory:
$ cd build  
  1. Now start the Mesos master:
$ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos
  1. And start the Mesos agent (in a separate terminal session):
$ sudo ./bin/mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/var/lib/mesos
  1. To validate the Mesos installation, open a browser on the Mesos host and point it to http://127.0.0.1:5050. If you wish to validate with a browser remotely, you will need to replace 127.0.0.1 with the real IP of the Mesos host in the previous commands and restart both the master and agent. You will also need to use the real IP of the Mesos host in the browser.
Warning
When using the real IP in the command line, the Mesos master and agent processes will fail to start unless the Mesos host is registered in DNS.
主站蜘蛛池模板: 油尖旺区| 河北区| 安吉县| 肥乡县| 卓资县| 淄博市| 金沙县| 赤壁市| 千阳县| 泗洪县| 巍山| 延吉市| 泰安市| 朝阳区| 石棉县| 藁城市| 顺平县| 龙游县| 济南市| 陆丰市| 屯昌县| 邯郸县| 肃宁县| 桐乡市| 轮台县| 根河市| 冷水江市| 镇平县| 桐城市| 东方市| 恭城| 乌拉特后旗| 八宿县| 洛扎县| 时尚| 中阳县| 广丰县| 栾川县| 望奎县| 靖安县| 剑河县|