美文网首页Hadoop
117.DataNoe的HOSTNAME修改

117.DataNoe的HOSTNAME修改

作者: 大勇任卷舒 | 来源:发表于2022-08-17 17:40 被阅读0次

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/agent/build/env/bin/supervisord
root     18152 18108  0 16:42 pts/0    00:00:00 grep supervisor
[root@cdh04 ~]# kill -9 1058
[root@cdh04 ~]# service cloudera-scm-agent restart
Stopping cloudera-scm-agent:                               [  OK  ]
Starting cloudera-scm-agent:                               [  OK  ]
[root@cdh04 ~]# 
  • 运行集群是否正常
[root@ip-xxx-xx-x-xx ~]# hadoop jar /opt/cloudera/parcels/CDH/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar pi 10 10

大数据视频推荐:
腾讯课堂
CSDN
AIops智能运维机器学习算法实战
ELK入门精讲
AIOps智能运维实战
ELK7 stack开发运维
大数据语音推荐:
ELK7 stack开发运维
企业级大数据技术应用
大数据机器学习案例之推荐系统
自然语言处理
大数据基础
人工智能:深度学习入门到精通

相关文章

网友评论

    本文标题:117.DataNoe的HOSTNAME修改

    本文链接:https://www.haomeiwen.com/subject/ndxsgrtx.html