• 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

This Article Has Been Shared 667 Times!

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

  • Install Apache Kafka on Ubuntu 16.04 : Single Cloud Server

    Here Are The Steps On How To Install Apache Kafka on Ubuntu 16.04 Running One Single Cloud Server Instance. Apache Kafka

  • Install Apache Zeppelin On Ubuntu 16.04

    Zeppelin Can Be Pre-Built Package Or Can Be Build From Source. Here Is How To Install Apache Zeppelin On Ubuntu 16.04 Building From Source.

  • Install Apache SystemML Machine Learning System on Ubuntu

    Here is How To Install Apache SystemML Machine Learning System on Ubuntu 16.04. SystemML needs a minimum guidance to get started to use it.

  • Theoretical Foundations of Big Data : Part 2

    Theoretical Foundations of Big Data is second part of our series of articles. We have talked about data privacy & basics of data warehouse.

  • 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.

Additionally, 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

  • What is an Automatic Ethanol Fireplace February 8, 2023
  • Disadvantages of Cloud-Native Computing February 7, 2023
  • Projector Screen Basics February 6, 2023
  • What is Configuration Management February 5, 2023
  • What is ChatGPT? February 3, 2023

About This Article

Cite this article as: Abhishek Ghosh, "How To Install Apache Mesos With Marathon On Ubuntu 16.04 LTS," in The Customize Windows, July 9, 2017, February 8, 2023, https://thecustomizewindows.com/2017/07/install-apache-meos-marathon-ubuntu-16-04-lts/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT