## 服务器

192.168.0.2

192.168.0.3	bsw-ubuntu

192.168.0.10	centos7-0

192.168.0.11	centos7-1

192.168.0.12	centos7-2

192.168.0.13	centos7-3

192.168.0.14	centos7-4

192.168.0.15	centos7-5

192.168.0.16	centos7-6

## 镜像源

改为清华镜像

```shell
sudo cp /etc/yum.repos.d/CentOS-Base.repo  /etc/yum.repos.d/CentOS-Base.repo.bk
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
         -e 's|^#baseurl=http://mirror.centos.org|baseurl=https://mirrors.tuna.tsinghua.edu.cn|g' \
         -i.bak \
         /etc/yum.repos.d/CentOS-*.repo
```

## Docker

### 安装

```shell
rm /etc/docker/daemon.json
mkdir /etc/docker
echo '{
    "registry-mirrors" : [
      "https://docker.mirrors.ustc.edu.cn",
      "https://registry.docker-cn.com",
      "http://hub-mirror.c.163.com"
  ],
  "log-opts": {"max-size":"100m", "max-file":"3"}
}' > /etc/docker/daemon.json
sudo yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-engine
sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y docker-ce docker-ce-cli containerd.io
sudo systemctl start docker
sudo curl -L "https://gitee.com/snycloudpub/docker-compose/attach_files/620730/download/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
```



## 服务

### 配置中心、注册中心

#### consul

web-ui ip:8500

主机：

bsw-ubuntu

centos7-0

centos7-1

启动方式： #bash：service consul start

### Hadoop 2.7.7

web-ui： http://centos7-3:50070/

主机：

centos7-0

centos7-2

centos7-3   （master）

启动：

登录 centos7-3 hadoop 用户

hadoop-2.7.7/sbin/start-all.sh

### Hbase  1.4.13

主机：

centos7-0

centos7-2

centos7-3   （master）

启动：

登录 centos7-3 hadoop 用户

hbase-1.4.13/bin/start-hbase.sh

开启thrift2协议

hbase-1.4.13/bin/hbase-daemon.sh start thrift2

