- Apache Mesos Cookbook
- David Blomquist Tomasz Janiszewski
- 420字
- 2021-07-15 17:04:27
How to do it...
- Browse to the following location: http://mesos.apache.org/downloads/.
- 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
- 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
- Change the directory to the extracted TAR file directory created in the previous step, for example:
$ cd mesos-1.0.1
- Create the build directory:
$ mkdir build
- Change directory to the build directory:
$ cd build
- 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
- 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
- Optional: Run some tests:
$ make check
- 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
- Optional: For Ubuntu only, create links to the Mesos libraries if you chose the default installation to /usr/local:
$ sudo ldconfig
- 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
- Change into the Mesos source build directory:
$ cd build
- Now start the Mesos master:
$ sudo ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos
- 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
- 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.
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.
推薦閱讀
- C++案例趣學
- FuelPHP Application Development Blueprints
- 一步一步學Spring Boot 2:微服務項目實戰
- Ceph Cookbook
- Raspberry Pi Networking Cookbook(Second Edition)
- Learning Bayesian Models with R
- PyTorch自然語言處理入門與實戰
- Java程序員面試算法寶典
- 零基礎學單片機C語言程序設計
- Webpack實戰:入門、進階與調優
- Learning Docker Networking
- Raspberry Pi Robotic Blueprints
- uni-app跨平臺開發與應用從入門到實踐
- Extending Unity with Editor Scripting
- Web Developer's Reference Guide