1) Download the latest stable version of Mesos from Mesos's official website: http://mesos.apache.org/downloads/, this is the mesos-0.22.1 version.
2) Move to the directory you like (you have 777 permissions in this directory), this article is placed under ~/desktop; Unzip:
tar -zxf mesos-0.22. 1. tar. gz
The build directory is named ~/desktop/mesos-0.22.1.
3) Install command line tools and homebrew:
xcode-Select -Install
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
4) Use Brew to install mesos necessary dependent software:
Install autoconf automake libtool subversion maven
During the installation process due to certain network limitations, some software could not download properly, the following error occurred:
At this time, please enter the following URL from the browser via VPN or proxy Fanqiang (different versions may have different filenames, whichever is the error information during installation):
HTTPS://homebrew.bintray.com/bottles/openssl-1.0.2d_1.yosemite.bottle.tar.gzhttps:// homebrew.bintray.com/bottles/subversion-1.8.13.yosemite.bottle.1.tar.gzhttps:// homebrew.bintray.com/bottles/scons-2.3.5.yosemite.bottle.tar.gzhttps://serf.googlecode.com/ SVN/SRC_RELEASES/SERF-1.3.8.TAR.BZ2
Move the downloaded four files to the/library/caches/homebrew/directory and run again
Install autoconf automake libtool subversion maven
After the installation is successful as shown.
5) Compile Build Mesos
In the ~/desktop/mesos-0.22.1 directory, create a new build directory under which Mesos is generated:
mkdir BUILDCD Build : /configure
Make
6) Running Mesos
Configure without error and make successful, Mesos installation is complete. After installation, the hard drive was eaten up to 5 more grams of space. Start master and slave separately under the build directory:
./bin/mesos-master. sh --ip=127.0. 0.1 --work_dir=./mesos_work_dir. /bin/mesos-slave. sh --master=127.0. 0.1:5050
Enter http://127.0.0.1:5050/#/in the browser to display the Mesos interface as follows, then the configuration is successful.
Deploying Mesos in OS X Yosemite