How to Install Mesos on macOS
Mesos is a distributed systems kernel that abstracts compute resources away from machines and lets their use be pooled together. In this tutorial, you'll learn how to install Mesos on a macOS machine using homebrew package manager.
Step 1: Install Homebrew
If you haven't installed homebrew on your macOS machine, go to https://brew.sh/ and follow the instructions to install it.
Step 2: Install Mesos
Open Terminal on your macOS machine.
Run the following command to update homebrew:
brew updateInstall Mesos by running the following command:
brew install mesosHomebrew will install Mesos and its dependencies. The installation process may take several minutes to complete.
Step 3: Configure Mesos
Open the Mesos configuration file by running the following command:
vim /usr/local/etc/mesos/mesos-master-env.shAdd the following two lines to the end of the file:
export MESOS_NATIVE_JAVA_LIBRARY=/usr/local/lib/libmesos.dylib export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos.dylibSave and exit the file.
Step 4: Start Mesos
To start Mesos, run the following command:
mesos-masterMesos will start and begin listening on port 5050.
Conclusion
Congratulations! You have successfully installed Mesos on your macOS machine. You can now use Mesos to manage compute resources and run distributed applications.