cdh5.3.10_hadoop环境迁移
主机迁移后Hadoop集群调整:
1、修改/etc/hosts(三台主机均需要修改)
修改前:
[root@hadoop-master ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
10.117.130.207 hadoop-master
10.117.130.208 hadoop-slave1
10.117.130.209 hadoop-slave2
[root@hadoop-master ~]#
修改后:
[root@hadoop-master ~]# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost.localdomain localhost4 localhost4.localdomain4 localhost
::1 localhost.localdomain localhost.localdomain localhost6 localhost6.localdomain6 localhost
10.117.130.110 hadoop-master
10.117.130.111 hadoop-slave1
10.117.130.112 hadoop-slave2
[root@hadoop-master ~]#
2、修改ntp时钟同步(三台主机均需要修改)
修改前:
[root@hadoop-master ~]# cat /etc/ntp.conf
server 10.117.130.207 prefer
修改后:
[root@hadoop-master ~]# cat /etc/ntp.conf
server 10.117.130.110 prefer
3、修改MySQL中hadoop相关配置(仅master主机修改)
修改前:
[root@hadoop-master data]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 58
Server version: 5.6.29 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
>
>
>>
>
>
>
>
>
>
>