hive问题汇总

1. Container killed by the ApplicationMaster. Container killed on request. Exit code is 143 Container exited with a non-zero exit code 143

Cause:

MapReduce -GC overhead limit exceeded Container killed by the ApplicationMaster

Solution:

you can fix this issue by either increase the number of reducers

set mapreduce.job.reduces=15;

or by increasing the reduce heap size

set mapreduce.reduce.java.opts=-Xmx2048m


2. java.net.ConnectException: Call From slave81/10.151.11.81 to slave81:8032 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused

Solution:

start-yarn.sh

3. Call From slave81/10.151.11.81 to 0.0.0.0:10020 failed on connection exception

Solution:

mapred.xml

+<property>
                <name>mapreduce.jobhistory.address</name>
                <value>Master.Hadoop:10020</value>
        </property>

Master.Hadoop为master主机IP

补充:
(1) ping 10.151.11.81能通,telnet 10.151.11.81 9000不能通,说明开启了防火墙
(2)关闭主机10.151.11.81防火墙/etc/init.d/iptables stop,显示:
iptables:清除防火墙规则:[确定]
iptables:将链设置为政策 ACCEPT:filter [确定]
iptables:正在卸载模块:[确定]
(3)重启

(4)hadoop fs -ls hdfs://namenode(ip):8020

4. org.apache.hadoop.ipc.RpcNoSuchProtocolException: Unknown protocol: org.apache.hadoop.mapreduce.v2.api.HSClientProtocolPB

mapred-site.xml

+

  1. <property>
  2.     <name>mapreduce.jobhistory.done-dir</name>
  3.     <value>${yarn.app.mapreduce.am.staging-dir}/history/done</value>
  4. </property>

  5. <property>
  6.     <name>mapreduce.jobhistory.intermediate-done-dir</name>
  7.     <value>${yarn.app.mapreduce.am.staging-dir}
  8.                          /history/done_intermediate</value>
  9. </property>

  10. <property>
  11.     <name>yarn.app.mapreduce.am.staging-dir</name>
  12.     <value>/tmp/hadoop-yarn/staging</value>
  13. </property>
./mr-jobhistory-daemon.sh   start historyserver


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值