Wednesday, October 21, 2015

Apache Mesos single node cluster install on Ubuntu server using apt-get

Apache Mesos is a distributed scheduling framework which allows us to build a fault tolerant distributed system. It pools your infrastructure, automatically allocating resources and scheduling tasks based on demands and policy.

This blog post will describe about configuring/installing Mesos using simple apt get install.

1. Install requirements using the following commands





sudo apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF
DISTRO=$(lsb_release -is | tr '[:upper:]' '[:lower:]')
CODENAME=$(lsb_release -cs)
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" | 
sudo tee /etc/apt/sources.list.d/mesosphere.list
sudo apt-get update
sudo apt-get install mesos

2. Run Mesos Master using the following command




sudo mesos-master --ip=GIVE_MASTER_IP --work_dir=/tmp/mesos

3. Run Mesos Slave using the following commands

sudo mesos-slave --master=GIVE_MASTER_IP:5050 --resources='cpus:4;mem:8192;disk:409600;'

You can check if the cluster started or not by pointing your web browser at MASTER_IP:5050. If you can see 1 at under “Slaves -> Activated” then you have single node cluster running.




No comments:

Post a Comment

Total Pageviews

Translate