标签:enable head 搭建 install mba 整理 set hostname ase
工作需要,大数据相关组件又得重新搭建,整理了一下。序号 | 主机名 | 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
Ambari 2.7.1.0进行Hadoop 3.0.1集群搭建
标签:enable head 搭建 install mba 整理 set hostname ase
原文地址:https://blog.51cto.com/xushaojie/2477125