CDH6.3修改主机IP

修改ip

开始是在公司使用桥接模式,回到家使用无线网段变了,遂改掉IP,CDH中还是配置的原来的IP,需要改掉

停服务

[root@node01 ~]# service cloudera-scm-agent stop
[root@node01 ~]# service cloudera-scm-server stop

进入mysql修改元数据ip

mysql -u root -p123
MariaDB [cm]> select host_id, host_identifier, name, ip_address from HOSTS;
+---------+--------------------------------------+--------+--------------+
| host_id | host_identifier                      | name   | ip_address   |
+---------+--------------------------------------+--------+--------------+
|       1 | 912f0256-f551-4b04-b314-0f7506c8ece7 | node01 | 192.168.1.81 |
|       2 | aafbe8a2-44a5-43b0-8b8b-b789cfed2f56 | node02 | 192.168.1.82 |
|       3 | 187eb2a6-1c71-4614-82f3-21ca82105e07 | node03 | 192.168.1.83 |
+---------+--------------------------------------+--------+--------------+

修改各主机的ip(分别修改各主机的ip)

MariaDB [cm]> update HOSTS set ip_address='192.168.206.81' where host_id='1'
    -> ;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

MariaDB [cm]> update HOSTS set ip_address='192.168.206.82' where host_id='2'
    -> ;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

MariaDB [cm]> update HOSTS set ip_address='192.168.206.83' where host_id='3';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

#修改完成后退出数据库
#输入命令 :\q 即可

修改所有hadoop集群机器中的cloudera-scm-agent的配置文件

所有机器修改

vi /etc/cloudera-scm-agent/config.ini
[General]
# Hostname of the CM server.
server_host=node01

# Port that the CM server is listening on.
server_port=7182

重启服务

[root@node01 ~]# systemctl start cloudera-scm-agent.service
[root@node01 ~]# systemctl restart cloudera-scm-server

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值