"Vmcloud Cloud Platform" embracing Docker (eight) Mesos Primer (1)

Source: Internet
Author: User
Tags mesosphere

Mesos if it is necessary to correspond to the Microsoft architecture, it is equivalent to split the was PAAs part, can support you to use Mesos to manage multiple containers, with Mesos, you can also use it to build PAAs platform publishing applications.

Here's what we're going to say about the MESOS environment today:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;float:none; Border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto; padding-top:0px; "title=" wps30c3.tmp "border=" 0 "alt=" wps30c3.tmp "src=" http://s3.51cto.com/wyfs02/M02/89/EA/ Wkiol1ghlpaxn8yvaab71yyqxfg928.jpg "width=" 576 "height=" 484 "/>

1. Enter MesOS01, enter sudo apt-get update, then enter sudo apt-get install-y tar wget git,sudo apt-get install-y openjdk-7-jdk, install me SOS Related components:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30D4.tmp "border= "0" alt= "wps30d4.tmp" src= "http://s3.51cto.com/wyfs02/M00/89/EA/wKioL1ghlpeCSmMLAADqnxAA4os854.jpg" width= "569" height= "268"/>

2, then install the dependent components autoconf and libtool,                                                                                                                              

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30E4.tmp "border= "0" alt= "wps30e4.tmp" src= "http://s3.51cto.com/wyfs02/M01/89/EA/wKioL1ghlpjDZ_xzAAGJ6waMBUg709.jpg" width= "562" height= "484"/>

3. Via sudo curl-fl http://downloads.mesosphere.io/master/ubuntu/14.04/mesos_0.19.0~ubuntu14.04%2B1_amd64.deb-o/tmp /mesos.deb, download the Deb file:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30E5.tmp "border= "0" alt= "wps30e5.tmp" src= "http://s3.51cto.com/wyfs02/M02/89/ED/wKiom1ghlpniw0nPAAA6TQ7OFOU938.jpg" width= "644" Height= "/>"

4, through the dpkg-i/tmp/mesos.deb to install Mesos Deb, through mkdir in etc under the creation of Mesos Master Node folder, and then the Mesos location for memory registration:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30E6.tmp "border= "0" alt= "wps30e6.tmp" src= "http://s3.51cto.com/wyfs02/M01/89/EA/wKioL1ghlpqj1E5iAAB5dxS137Y215.jpg" width= "554" height= "135"/>

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30E7.tmp "border= "0" alt= "wps30e7.tmp" src= "http://s3.51cto.com/wyfs02/M02/89/EA/wKioL1ghlprBDpzwAAA8YIFxkUo604.jpg" width= "549" Height= "/>"

5, followed by sudo curl-fl http://downloads.mesosphere.io/master/ubuntu/14.04/mesos-0.19.0_rc2-py2.7-linux-x86_64.egg-o/ Tmp/mesos.egg Download Mesos installation file:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30F8.tmp "border= "0" alt= "wps30f8.tmp" src= "http://s3.51cto.com/wyfs02/M00/89/ED/wKiom1ghlpvgG-KQAAAc6z7O__w908.jpg" width= "404" Height= "/>"

6, through the Easy_install/tmp/mesos.egg for Mesos installation:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30F9.tmp "border= "0" alt= "wps30f9.tmp" src= "http://s3.51cto.com/wyfs02/M01/89/ED/wKiom1ghlpywSMT1AABqBjDj9hY224.jpg" width= "438" height= "154"/>

7, to really use mesos, we also need to download marathon (especially docker cluster environment), through Curl-o http://downloads.mesosphere.io/marathon/marathon-0.6.0/ marathon-0.6.0.tgz to download, then unzip:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps30FA.tmp "border= "0" alt= "wps30fa.tmp" src= "http://s3.51cto.com/wyfs02/M02/89/ED/wKiom1ghlpzCPd7aAABHJKX-wgs587.jpg" width= "644" Height= "/>"

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps310A.tmp "border= "0" alt= "wps310a.tmp" src= "http://s3.51cto.com/wyfs02/M00/89/EA/wKioL1ghlp2ix6iOAADy2CfUxh8921.jpg" width= "379" height= "372"/>

8. Install via PIP install Deimos:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps310B.tmp "border= "0" alt= "wps310b.tmp" src= "http://s3.51cto.com/wyfs02/M01/89/ED/wKiom1ghlp7iX0QxAAB_9lM5p8g361.jpg" width= "644" Height= "/>"

9, configuration Mesos use Deimos:

Mkdir-p/etc/mesos-slave

Echo/usr/local/bin/deimos | sudo dd Of=/etc/mesos-slave/containerizer_path

echo External | sudo dd of=/etc/mesos-slave/isolation

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps310C.tmp "border= "0" alt= "wps310c.tmp" src= "http://s3.51cto.com/wyfs02/M00/89/ED/wKiom1ghlp_hFqriAAB30ddbWdQ399.jpg" width= "644" height= "158"/>

10, start related services:

Initctl reload-configuration

Service Zookeeper Start

Service Mesos-master Start

Service Mesos-slave Start

11. Start Marathon:

CD marathon-0.6.0

./bin/start--master Zk://localhost:2181/mesos--zk_hosts localhost:2181

12. Now you can use mesosip:8080 to access the Mesos managed by marathon:

650) this.width=650; "Style=" background-image:none;margin:0px;padding-left:0px;padding-right:0px; border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" Wps311D.tmp "border= "0" alt= "wps311d.tmp" src= "http://s3.51cto.com/wyfs02/M01/89/ED/wKiom1ghlqCBfbhrAAAYddRpqBE070.jpg" width= "644" height= "111"/>

13. Of course, you can access the Mesos native UI via 5050 ports:

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;border-top-width:0px; border-bottom-width:0px;border-left-width:0px;padding-top:0px; "title=" wps313d.tmp[4] "border=" 0 "alt=" WPS313D.TMP[4] "src=" http://s3.51cto.com/wyfs02/M02/89/ED/wKiom1ghlqui6KL8AACPf4H0VsQ758.jpg "width=" 644 "height= "473"/>

650) this.width=650; "Style=" background-image:none;padding-left:0px;padding-right:0px;float:none; Border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto; padding-top:0px; "title=" Logo_thumb "border=" 0 "alt=" logo_thumb "src=" http://s3.51cto.com/wyfs02/M02/89/EA/ Wkiol1ghlqzhvcknaaeqmfweoom888.png "width=" 534 "height=" 351 "/>

This article from "Vmcloud" blog, declined reprint!

"Vmcloud Cloud Platform" embracing Docker (eight) Mesos Primer (1)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.