欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

hadoop3.0 HA 启动start-yarn.sh失败 博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 

程序员文章站 2024-03-12 18:35:14
...

问题描述:

    hadoop-3.0.0 搭建HA 启动start-yarn.sh脚本之后,ResourceManager并未启动

 

分析:

执行start-yarn.sh脚本启动yarn,log如下:

hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
 

jps查看ResourceManger并没有启动起来,

查看启动脚本,发现需要配置yarn.resourcemanager.hostname.${id} 参数

hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
 

在yarn-site.xml中配置一下,重启启动

hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
 

jps查看,启动成功

hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
 

对比hadoop-2.8.1中的strat-yarn.sh脚本,发现 hadoop-3.0中已经做了很多改变

hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
 

  • hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
  • 大小: 2.1 KB
  • hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
  • 大小: 17 KB
  • hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
  • 大小: 2.7 KB
  • hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
  • 大小: 14.6 KB
  • hadoop3.0 HA 启动start-yarn.sh失败
            
    
    博客分类: hadoop hadoop3.0 HA 启动start-yarn.sh失败 
  • 大小: 55.9 KB