我是靠谱客的博主 优秀小兔子,这篇文章主要介绍CDH6集群迁移(IP地址更改)操作文档,现在分享给大家,希望可以做个参考。

CDH6集群迁移(IP地址更改)操作文档

    • 1、更改IP地址:
    • 2、更改host:
    • 3、server节点上修改MySQL数据库,
    • 4、更改agent配置
    • 5、更改yum仓库地址
    • 6、检查ntp配置
    • 7、检查ssh是否能连通
    • 8、启动server、agent:

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

7、检查ssh是否能连通

可能要删除~/.ssh/know_host文件

8、启动server、agent:

service cloudera-scm-server start
service cloudera-scm-agent start

最后

以上就是优秀小兔子最近收集整理的关于CDH6集群迁移(IP地址更改)操作文档的全部内容,更多相关CDH6集群迁移(IP地址更改)操作文档内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部