CDH6集群迁移(IP地址更改)操作文档
1、更改IP地址:
vi /etc/sysconfig/network-scripts/ifcng-ens33
2、更改host:
vi /etc/hosts
3、server节点上修改MySQL数据库,
mysql -u root -p
use scm;
select * from HOSTS;
update HOSTS set ip_address= ‘172.31.134.100’ where host_id=1;
update HOSTS set ip_address= ‘172.31.134.101’ where host_id=2;
update HOSTS set ip_address= ‘172.31.134.104’ where host_id=3;
update HOSTS set ip_address= ‘172.31.134.103’ where host_id=4;
update HOSTS set ip_address= ‘172.31.134.102’ where host_id=5;
4、更改agent配置
vi /etc/cloudera-scm-agent/config.ini
5、更改yum仓库地址
如果yum仓库用的是IP地址,那就要改一下(改server节点即可,保险起见最好每个节点都改一下):
vi /etc/yum.repos.d/cloudera-manager.repo
yum clean all
yum makecache
6、检查ntp配置
检查server地址是否需要更改
vi /etc/ntp.conf

本文档详细介绍了如何进行CDH集群的IP地址更改操作,包括更新网络配置、hosts文件、MySQL数据库中的主机记录、agent配置、yum仓库地址,以及检查ntp和ssh连通性,最后重启server和agent服务。
最低0.47元/天 解锁文章
1590

被折叠的 条评论
为什么被折叠?



