yarn 集群部署,遇到的问题小结

本文总结了在Yarn集群部署过程中遇到的问题,重点讨论了Hive配置参数hive.fetch.task.conversion的调整,该参数可以控制简单查询是否执行map/reduce任务,将其设为'more'或'minimal'能有效优化查询性能。
摘要由CSDN通过智能技术生成
版本信息: hadoop 2.3.0  hive 0.11.0

1. Application Master 无法访问

    点击application mater 链接,出现 http 500 错误,java.lang.Connect.exception:
    问题是由于设定web ui时,50030 端口对应的ip地址为0.0.0.0,导致application master 链接无法定位。

解决办法:
      yarn-site.xml 文件
    <property>
        <description>The address of the RM web application.</description>
        <name>yarn.resourcemanager.webapp.address</name>
        <value> xxxxxxxxxx:50030</value>
    </property>
    这是2.3.0 的里面的一个bug 1811 ,2.4.0已经修复

2. History UI 无法访问 和 container 打不开
     点击 Tracking URL:History无法访问
        问题是 history service 没有启动
      
  解决办法:
     配置:选择( xxxxxxxxxx: 作为history sever
   
    <property>
        <name>yarn.log-aggregation-enable</name>
        <value>true</value>
    </property>
   <property>
        <name>mapreduce.jobhistory.address</name>
        <value> xxxxxxxxxx::10020</value>
    </property>

    <property>
    <name>mapreduce.jobhistory.webapp.address</name>
        <value> xxxxxxxxxx:19888</value>
    </property>

  sbin/mr-jobhistory-daemon.sh   
start historyserver

3 yarn 平台的优化
 
设置 虚拟cpu的个数
    <property>
        <name>yarn.nodemanager.resource.cpu-vcores</name>
        <value>23</value> 
    </property>
     设置使用的内存
    <property>
        <name>yarn.nodemanager.resource.memory-mb</name>
        <value>61440</value>
        <description>the amount of memory on the NodeManager in GB</description>
    </property>
设置每个任务最大使用的内存
    <property>
        <name>yarn.scheduler.maximum-allocation-mb</name>
        <value>49152</value>
        <source>yarn-default.xml</source>
    </property>

4 运行任务 提示:  Found interface org.apache.hadoop.mapreduce.Counter, but class was expected
修改pom,重新install
    <dependency>
           <groupId>org.apache.hadoop</groupId>
           <artifactId>hadoop-common</artifactId>
           <version>2.3.0</version>
   </dependency>    
 <dependency>
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-mapreduce-client-core</artifactId>
         <version>2.3.0</version>
   </dependency>
   <dependency>
                <groupId>org.apache.mrunit</groupId>
                <artifactId>mrunit</artifactId>
                <version>1.0.0</version>
                <classifier> hadoop2< /classifier>
                <scope>test</scope>
            </dependency>
jdk 换成1.7

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值