Mesos and YARN

DC/OS

System Requirements

Tutorial

Install Fedora 25 from Source

requires libapr-1 and libsubversion-1

sudo dnf install apr-devel subversion-devel
  • clone master branch of mesos, configure and build using 4 cores
  • need to configure path of mesos to environment variable, otherwise will put downloaded path and need to modify start script ./bin/mesos-master.sh, ./bin/mesos-agent.sh, src/mesos-master and src/mesos-agent accordingly, including replacement of $PATH variable contents
git clone https://git-wip-us.apache.org/repos/asf/mesos.git
cd mesos
./bootstrap
mkdir build
cd build
../configure
make -j 4 V=0

create working dir and change permissions

sudo mkdir /var/lib/mesos
sudo chown -R xps13:xps13 /var/lib/mesos

start Mesos master (ensure work directory exists and has proper permissions).

./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos

start Mesos agent in new terminal, visit the Mesos web page 127.0.0.1:5050

./bin/mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/var/lib/mesos

run Python framework (exits after successfully running some tasks).

./src/examples/python/test-framework 127.0.0.1:5050


Published

02 May 2017

Category

technical