• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

By Abhishek Ghosh July 9, 2017 9:52 am Updated on July 2, 2018

How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

Advertisement

In a previously published article we introduced to multi cloud. In that article we gave example of managing SendGrid from WordPress dashboard using SendGrid WordPress plugin. Mesosphere is a software that expands the cluster management capabilities of Apache Mesos with additional components to manage server infrastructures. By combining several components with Mesos such as Marathon and Chronos, Mesosphere can scale applications by abstracting the challenges of scaling.

How To Install Apache Meos With Marathon On Ubuntu 16-04 LTS

Mesosphere provides features like application scheduling, scaling, fault-tolerance, self-healing, application service discovery, port unification, and end-point elasticity. Apache Mesos is an open source software project to manage computer clusters which was developed at the Berkeley University. Apache Aurora is a Mesos framework for long running services and cron jobs (originally developed by Twitter) which can scale to tens of thousands of servers. Chronos is a distributed cron-like system. Marathon is like platform as a service or container orchestration system which is fully REST based, allows canary style deploys and deployment topologies written in Scala. Here is how to install Apache Meos with Marathon on Ubuntu 16.04 LTS in order to integrate, manage multiple servers or multi cloud environment. It is possibly important to read the official webpages :

Vim
1
2
3
http://mesos.apache.org
https://mesosphere.com
https://github.com/mesosphere/marathon

 

How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

 

Installation is exactly like Apache Big Data tools – Java and Zookeeper (like we needed to install for Apache Kafka on Ubuntu 16.04 guide). We are installing on virtual server or physical server or dedicated server or localhost NOT on docker or some sort of container. Run all commands as root user.

Advertisement

---

First install Java and dependencies :

Vim
1
2
3
4
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
tar -xzvf jdk-8u45-linux-x64.tar.gz
rm -rf jdk-8u45-linux-x64.tar.gz
sudo apt-get install -y autoconf libtool libcurl4-nss-dev libsasl2-dev libsasl2-modules libapr1-dev libsvn-dev

Then open :

Vim
1
nano /etc/apt/sources.list.d/mesosphere.list

add :

Vim
1
deb http://repos.mesosphere.com/ubuntu xenial main

Save the file. Run :

Vim
1
2
apt update
apt install mesos marathon

To configure ZooKeeper :

Vim
1
cat /etc/zookeeper/conf/myid

Return should be 1.

Vim
1
nano /etc/zookeeper/conf/zoo.cfg

Make that 1 like this :

Vim
1
server.1=hostname:2888:3888

Configure Mesos Master :

Vim
1
nano /etc/mesos/zk

this :

Vim
1
zk://hostname:2181/mesos

Open

Vim
1
nano /etc/mesos-master/quorum

There should have 1.

Configure Mesos to use the Mesos containerizer with docker image support :

Vim
1
nano /etc/mesos-slave/containerizers

There should be mesos.

Vim
1
nano /etc/mesos-slave/image_providers

There should be docker.

Vim
1
cat /etc/mesos-slave/isolation

Should have :

Vim
1
filesystem/linux,docker/runtime

Configuring Java Home needed as some frameworks expect the JAVA_HOME variable to be set (within their tasks). Adjust the Mesos agent’s configuration:

Vim
1
cat <<EOF >> /etc/mesos-slave/executor_environment_variables

there should be :

Vim
1
2
3
{
  "JAVA_HOME": "/usr/lib/jvm/java-8-openjdk-amd64"
}

Start the services :

Vim
1
2
3
sudo service zookeeper restart
sudo service mesos-master restart
sudo service mesos-slave restart

Go to :

Vim
1
2
3
4
# Mesos:
http://localhost:5050
# Marathon:
http://localhost:8080

 

How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS From Source Code?

 

Install Maven 3 :

Vim
1
2
3
4
5
6
7
8
wget http://supergsego.com/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
tar -xzvf apache-maven-3.3.9-bin.tar.gz
rm -rf apache-maven-3.3.9-bin.tar.gz
sudo vim ~/.bashrc
  export M2_HOME=~/apache-maven-3.3.9
  export PATH=$PATH:$M2_HOME/bin
source ~/.bashrc
mvn -version

Install Zookeper :

Vim
1
2
3
4
5
6
7
wget http://ftp.unicamp.br/pub/apache/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
tar -xzvf zookeeper-3.4.9.tar.gz
rm -rf zookeeper-3.4.9.tar.gz
cd zookeeper-3.4.9/
cp zoo_sample.cfg  zoo.cfg
cd zookeeper-3.4.9/
sudo -E bin/zkServer.sh start

Install Mesos :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
sudo apt-get install -y autoconf libtool libcurl4-nss-dev libsasl2-dev libsasl2-modules libapr1-dev libsvn-dev
sudo wget https://bitbucket.org/pypa/setuptools/raw/0.7.8/ez_setup.py -O - | sudo python
wget http://www.apache.org/dist/mesos/0.28.2/mesos-0.28.2.tar.gz
tar -xzvf mesos-0.28.2.tar.gz
rm -rf mesos-0.28.2.tar.gz
cd mesos-0.28.2/
mkdir build
cd build
../configure
make
make install
sudo -E ./bin/mesos-master.sh --ip=127.0.0.1 --work_dir=/var/lib/mesos

If you go to http://127.0.0.1:5050 or http://your_IP:5050 you’ll get the thing. That happens because :

Vim
1
2
./src/examples/java/test-framework 127.0.0.1:5050
./bin/mesos-agent.sh --master=127.0.0.1:5050 --work_dir=/var/lib/mesos

Install Chronos :

Vim
1
2
3
4
5
export MESOS_NATIVE_LIBRARY=/usr/local/lib/libmesos.so
git clone https://github.com/mesos/chronos.git
cd chronos
mvn package -DskipTests
java -cp target/chronos*.jar org.apache.mesos.chronos.scheduler.Main --master zk://localhost:2181/mesos --zk_hosts localhost:2181

If you go to http://localhost:8080/ or http://your_IP:5050 you’ll get the thing.

Tagged With khardaha rahara orthopedic doctor , ubuntu instaal mesos , setup mesosphereon ubuntu16 , Mesosphere , libmesos so , ho wto install mesosphere in ubuntu 16 , install mesos on ubuntu , install apache mesos on ubuntu , how we can install apache mesos on linux machine , how to set up mesosphere on ubuntu 16 04 in digital ocean
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS

  • How to Install Apache Tika on Ubuntu Server

    Apache Tika is a Content Analysis Framework Which Can Be Configure With Web Software Like WordPress For Metadata Extraction of PDF, doc. Here is How to Install Apache Tika on Ubuntu Server.

  • How to Install Apache Hama (HDFS Installation)

    Apache Hama is a Distributed Computing Framework For Massive Scientific Computations. Here is How to Install Apache Hama as HDFS Installation.

  • How To Install Apache Maven on Ubuntu Server

    Apache Maven is a Build Automation Tool. Here Are the Steps on How To Install Apache Maven on Ubuntu Server. Maven Needed For Many Big Data Software.

  • Docker Vs Kubernetes Vs Apache Mesos : devOps Dilemma Clarified

    Sometimes We Talk About Docker, Sometimes Combine Kubernates, Sometimes Meos. Here is Docker Vs Kubernetes Vs Apache Mesos to Clarify devOps.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy