CDH集群
- 原HOSTNAME
- ip-xxx-xx-x-xx.fayson.com
- 修改为
- cdh04.fayson.com
117.1 DataNode节点的HOSTNAME修改
- 修改/etc/sysconfig/network配置
[root@ip-xxx-xx-x-xx ~]# vim /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=cdh04.fayson.com
- 立即生效
[root@ip-xxx-xx-x-xx ~]# hostname cdh04.fayson.com
117.2 更新所有节点的hosts
- 同步至集群所有节点的/etc/hosts
[root@cdh04 ~]# more /etc/hosts
- 重启DataNode节点的Agent服务
[root@cdh04 ~]# ps -ef |grep supervisor
root 1058 1 0 15:23 ? 00:00:05 /usr/lib64/cmf/agent/build/env/bin/python /usr/lib64/cmf/ag