@zhangyy
2018-05-24T23:09:19.000000Z
字数 1534
阅读 148
大数据平台构建
- 一: 新增节点的数据系统初始
- 二: 增加数据节点的步骤
系统:RHEL7.5x64
cat /etc/hosts
172.17.100.21 ZY-001.flyfish
172.17.100.22 ZY-002.flyfish
172.17.100.23 ZY-003.flyfish
172.17.100.24 ZY-004.flyfish
ZY-004.flyfish 作为增加节点
yum install -y firewall* iptable*
(1) 关闭firewalld
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state
(2) 关闭iptables
iptables -F
systemctl stop iptables.service
service iptables save
systemctl disable iptables.service
(3) 禁用 selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
setenforce 0
getenforce 0
sestatus
重启机器
reboot
做root用户无密钥认证
ssh-keygen ---一直敲回车到最后
cat id_rsa.pub >> authorized_keys
将所有的公钥导入authorized_keys 分发到 所有的 机器的.ssh/ 下面
然后测试
---
ssh zy-004.flyfish
login:
ZY-002.flyfish
scp /etc/chrony.conf ZY-004.flyfish:/etc/
login:
ZY-004.flyfish
service chronyd stop
service chronyd start
chkconfig chronyd on
chronyc sources -v
login:
ZY-001.flyfish
scp /etc/security/limits.conf zy-004.flyfish:/etc/security/
cd /etc/yum.repos.d/
scp ambari.repo hdp.gpl.repo hdp.repo ZY-004.flyfish:/etc/yum.repos.d/
login:
ZY-004.flyfish
mount /dev/cdrom /media/
yum makecache
login:
ZY-001.flyfish
scp jdk-8u162-linux-x64.tar.gz ZY-004.flyfish:/root
scp /etc/profile ZY-004.flyfish:/etc/
login:
ZY-004.flyfish
tar -zxvf jdk-8u162-linux-x64.tar.gz -C /training/
cd /training
ln -s jdk1.8.0_162/ jdk
source /etc/profile
java -version
libtirpc-0.2.4-0.10.el7.x86_64.rpm
libtirpc-devel-0.2.4-0.10.el7.x86_64.rpm
---
scp libtirpc-* ZY-004.flyfish:/root
login
ZY-004.flyfish
rpm -ivh libtirpc-*