当前位置:   article > 正文

Hive运行的一个错误_yarn while invoking applicationclientprotocolpbcli

yarn while invoking applicationclientprotocolpbclientimpl.getapplicationrepo

前几天在用hive进行数据分析的时候,中间有事,就离开了一会儿。过了很久回来了发现hive执行任务的时候卡住不会动了。然后就去找原因,本以为是自己分配的内存不够,看了日志发现日志里的错误信息是没有找到主机的路由,猛然意识到可能是虚拟机的IP地址发生了变化,一查看,果不其然。然后去hosts文件下修改为现在的IP地址,重启了resourcemanage后,就可以正常使用了。
卡在这里

WARNING: Hive-on-MR is deprecated in Hive 2 and may not be available in the future versions. Consider using a different execution engine (i.e. spark, tez) or using Hive 1.X releases.
Query ID = desperado_20200805180732_3254d27e-5539-4cc5-a3f3-cb599dfd99ef
Total jobs = 1
Launching Job 1 out of 1
Number of reduce tasks not specified. Estimated from input data size: 1
In order to change the average load for a reducer (in bytes):
  set hive.exec.reducers.bytes.per.reducer=<number>
In order to limit the maximum number of reducers:
  set hive.exec.reducers.max=<number>
In order to set a constant number of reducers:
  set mapreduce.job.reduces=<number>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

日志报错

slave:8032 failed on socket timeout exception: java.net.NoRouteToHostException: 没有到主机的路由; 
For more details see:  http://wiki.apache.org/hadoop/NoRouteToHost, while invoking ApplicationClientProtocolPBClientImpl.
getNewApplication over null after 18 failover attempts. Trying to failover after sleeping for 24160ms.
  • 1
  • 2
  • 3

之后我Hadoop集群配置的时候yarn等用的地址都是主机名不是IP地址,所以只用修改一下hosts文件里的IP地址就可以了,比较简单一点。然后就是想要搞一下静态IP,在网上找办法,不太懂,好几个我都没有试成功,改了之后虚拟机不能联网,只好把租用的时间加长了,希望有效,后续再继续探索固定IP地址的办法。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Li_阴宅/article/detail/745441
推荐阅读
相关标签
  

闽ICP备14008679号