开发者社区> kissweety> 正文
阿里云
为了无法计算的价值
打开APP
阿里云APP内打开

cdh5.3.10_hadoop环境迁移之主机IP修改

简介: cdh5.3.10_hadoop环境迁移 主机迁移后Hadoop集群调整: 1、修改/etc/hosts(三台主机均需要修改) 修改前: [root@hadoop-master ~]# cat /etc/hosts 127.
+关注继续查看

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.


>

     


        
       
       
       

        
        
       




>





>

         

            
        
    
           
         
  

   

           
          
           
       
            
          
       
          
        
             
           
        

            
            
       
           
    
           
         
           
             
           
      
    
     
        
           
         
       
             
          
         


>>

                   

                                                                        
                                                                        
                                                                        


>

>

>

>

                   

                                                                        
                                                                        
                                                                        




>

>

>











 










 
 






 
 

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
hadoop3.x的安装
请看https://www.cnblogs.com/garfieldcgf/p/8119506.html
669 0
Hadoop 学习目录(搁置)
简介 Hadoop是一个由Apache基金会所开发的分布式系统基础架构。用户可以在不了解分布式底层细节的情况下,开发分布式程序。充分利用集群的威力进行高速运算和存储。Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。
792 0
+关注
kissweety
我个人活泼开朗,积极向上,思维活跃;热爱数据库行业,对oracle数据库运维工作有浓厚的兴趣,能承受较大的工作压力;具有很强的团队精神,有良好的组织、协调和沟通能力,有强烈的集体荣誉感;自学能力强,喜欢钻研新技术,敢于面对和克服困难;有比较强的动手能力,勇于面对困难和挑战。
122
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载