Hive异常

Stella981
• 阅读 515

错误异常如下所示:

java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.records.Resource.setMemorySize(J)V

2018-08-30T14:06:08,442 ERROR [d95cabf4-1c04-4bad-9c6d-fa8651fba8f0 main] exec.TaskRunner: Error in executeTask
java.lang.NoSuchMethodError: org.apache.hadoop.yarn.api.records.Resource.setMemorySize(J)V
    at org.apache.hadoop.mapred.YARNRunner.createApplicationSubmissionContext(YARNRunner.java:340) ~[hadoop-mapreduce-client-jobclient-2.8.4.jar:?]
    at org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:295) ~[hadoop-mapreduce-client-jobclient-2.8.4.jar:?]
    at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:240) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1290) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1287) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_65]
    at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_65]
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1840) ~[hadoop-common-2.8.4.jar:?]
    at org.apache.hadoop.mapreduce.Job.submit(Job.java:1287) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:575) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:570) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_65]
    at javax.security.auth.Subject.doAs(Subject.java:422) ~[?:1.8.0_65]
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1840) ~[hadoop-common-2.8.4.jar:?]
    at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:570) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:561) ~[phoenix-4.14.0-HBase-1.4-hive.jar:?]
    at org.apache.hadoop.hive.ql.exec.mr.ExecDriver.execute(ExecDriver.java:411) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.exec.mr.MapRedTask.execute(MapRedTask.java:151) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:199) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:100) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:2183) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1839) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1526) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1237) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1227) ~[hive-exec-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:233) ~[hive-cli-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:184) ~[hive-cli-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403) ~[hive-cli-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821) ~[hive-cli-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) ~[hive-cli-2.3.3.jar:2.3.3]
    at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686) ~[hive-cli-2.3.3.jar:2.3.3]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
    at org.apache.hadoop.util.RunJar.run(RunJar.java:234) ~[hadoop-common-2.8.4.jar:?]
    at org.apache.hadoop.util.RunJar.main(RunJar.java:148) ~[hadoop-common-2.8.4.jar:?]
2018-08-30T14:06:08,442 ERROR [d95cabf4-1c04-4bad-9c6d-fa8651fba8f0 main] ql.Driver: FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. org.apache.ha
doop.yarn.api.records.Resource.setMemorySize(J)V

原因:缺少Jar包,在Hadoop的share/hadoop/yarn/hadoop-yarn-api-2.8.4.jar

解决方案:将该Jar包存入Hive的lib目录中即可解决。

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
待兔 待兔
5个月前
手写Java HashMap源码
HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
Spring Boot日志集成
!(https://oscimg.oschina.net/oscnet/1bde8e8d00e848be8b84e9d1d44c9e5c.jpg)SpringBoot日志框架SpringBoot支持JavaUtilLogging,Log4j2,Lockback作为日志框架,如果你使用star
Stella981 Stella981
3年前
Redis 6.0 正式版终于发布了!除了多线程还有什么新功能?
!(https://oscimg.oschina.net/oscnet/b8c8b22b9f44bd806c26b486e1893a263a4.jpg)这是我的第56篇原创文章!(https://oscimg.oschina.net/oscnet/8bf00bc92f6a1cd46596ee44bac64a801ae.pn
Wesley13 Wesley13
3年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
11个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这