DC / OS first experience

Installation of the official documents written very clearly, I copied a copy of the equipment.
Now the local platform only supports centos and coreos platform, other platforms do not support, install the best use of clean system, the first time I used my original mesos + marathon cluster installation failed.
The initialization node must be independent of the master and node, because the installation script will be docked docker service, the installation program is also using the docker will lead to the installation failed.
This installs three nodes (at least three nodes):
172.16.1.70 Initialize the node
172.16.1.71 dc / os master
172.16.1.72 dc / os slave

Dcos initializes node preparation
Master and node can also be installed, the script also has the same operation, now installed will be much faster follow-up, but also to avoid mistakes:
Upgrade the kernel, modify the startup parameters to add -s overlay
Yum upgrade-y
Sudo systemctl stop firewalld && sudo systemctl disable firewalld
Yum install -y docker-engine && sudo systemctl start docker && sudo systemctl enable docker
Docker pull nginx (dcos installation node)
Ssh-copy-id -i 172.16.1.71 (add no password login, where users do not have to be root, install the script are added to the oil sudo command)

Master and node installed services :
Yum install-y tar xz unzip curl ipset
Sudo sed -is / SELINUX = enforcing / SELINUX = permissive / g / etc / selinux / config &&
Sudo groupadd nogroup &&
Sudo sysctl -w net.ipv6.conf.all.disable_ipv6 = 1 &&
Sudo sysctl -w net.ipv6.conf.default.disable_ipv6 = 1 &&
Sudo reboot

In the initial operation of the node <br /> upgrade kernel, modify the startup parameters to add -s overlay
Yum upgrade-y
Sudo systemctl stop firewalld && sudo systemctl disable firewalld
Yum install -y docker-engine && sudo systemctl start docker && sudo systemctl enable docker
Docker pull nginx (dcos installation node)
Ssh-copy-id-i 172.16.1.7x (add no password login, where users do not have to be root, install the script are added in the oil sudo command)
Curl -O https://downloads.dcos.io/dcos … ig.sh Download the installation script
Sudo bash dcos_generate_config.sh –web -v Start the installer

Installation Interface Configuration <br /> Access the 9000 port of the installation node
Http://172.16.1.71:9000
Master Private IP List: The list of installed nodes is separated by commas
Agent Private IP List: node list of nodes
Master Public IP: public IP, proxy proxy, no proxy write master address
SSH Username: User name
SSH Listening Port: port
SSH Key: secret key
Upstream DNS Servers: Use dns
IP Detect Script: ip Get the script, I wrote here is:
Ip addr s | grep inet | grep 172.16.1 | awk -F '' '{print $ 2}' | awk -F '/' '{print $ 1}',
The way the official website is:

! / Usr / bin / env bash

Set -o nounset -o errexit
Export PATH = / usr / sbin: / usr / bin: $ PATH
Echo $ (ip addr show eth0 | grep -Eo '[0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3}. [0-9] {1,3} '| head -1)
The specific ways and the introduction of the configuration file here to see: https://dcos.io/docs/1.7/admin … / cli /
If the installation fails, delete / opt / mesosphere and / var / lib / zookeeper
And then the next step on the line to finally visit your master

dcos-gui-login.png

Login interface <br /> support Google, github, Microsoft, account login (here had Tucao, I installed a local service but also with the public network certification, perhaps I have other ways to have food), try a few times the general will be able to board on.
Then we saw the interface of high pressure
123.png
Add users will not have to say

Install dcos-cli
Pip install virtualenv
Mkdir dcos && cd dcos
Curl -O https://downloads.dcos.io/dcos-cli/install.sh
Bash install.sh. Http://172.16.1.71
Source / root / dcos / bin / env-setup
Dcos help
Dcos login (here will return an address in the browser to generate a token, the token is copied to OK)

And then you can force the force:
Deploy the service on marathon
Dcos marathon app add https://dcos.io/docs/1.7/usage/nginx.json Start a nginx
Dcos package describe –config marathon
Dcos package install –options = marathon-config.json marathon

Install the chronos component
Dcos package install chronos
webui-universe-install.png
Dcos package list can be viewed
Dcos package search "big data" found large data related
Dcos package repo list
Dcos package repo add your-repo https: //yourcompany/archive/stuff.zip add
Dcos package repo remove your-repo remove

Uninstall DC / OS
Bash dcos_generate_config.sh –uninstall

The specific can go to the official website view.

    Heads up! This alert needs your attention, but it's not super important.