工做須要,大數據相關組件又得從新搭建,整理了一下。node
序號 | 主機名 | IP | 程序 | CPU | 內存 | 磁盤 | 操做系統 |
---|---|---|---|---|---|---|---|
1 | ambari.dev.smcaiot.com | 172.16.4.74 | Ambari | 4C | 24GB | 200GB | CentOS Linux release 7.4.1708 (Core) |
2 | master.dev.smcaiot.com | 172.16.4.74 | Master | 4C | 24GB | 200GB | CentOS Linux release 7.4.1708 (Core) |
3 | node01.dev.smcaiot.com | 172.16.4.75 | node01 | 4C | 24GB | 200GB | CentOS Linux release 7.4.1708 (Core) |
4 | node02.dev.smcaiot.com | 172.16.4.76 | node02 | 4C | 24GB | 200GB | CentOS Linux release 7.4.1708 (Core) |
hostnamectl set-hostname master.dev.smcaiot.com cat > /etc/sysconfig/network <<EOF NETWORKING=yes HOSTNAME=master.dev.smcaiot.com EOF cat > /etc/resolv.conf <<EOF nameserver 223.5.5.5 EOF cat > /etc/hosts <<EOF 172.16.4.74 master.dev.smcaiot.com 172.16.4.74 ambari.dev.smcaiot.com 172.16.4.75 node01.dev.smcaiot.com 172.16.4.76 node02.dev.smcaiot.com EOF systemctl status firewalld.service systemctl disable firewalld.service sed -i "s#SELINUX=enforcing#SELINUX=disabled#g" /etc/selinux/config setenforce 0 yum install openssl -y yum install ntp ntpdate -y systemctl start ntpd systemctl enable ntpd