本文介绍了问题的Apache蜂巢0.14运行DML查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个表蜂巢0.14与事务属性,只要我运行一个插入或选择我碰到下面的错误。
异常线程mainjava.lang.NoSuchMethodError:org.apache.hadoop.ma pred.JobConf.unset(Ljava /朗/字符串;)V
在org.apache.hadoop.hive.ql.io.HiveInputFormat.pushFilters(HiveInputFormat.java:432)
在org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:76)
在org.apache.hadoop.hive.ql.Driver.compile(Driver.java:443)
在org.apache.hadoop.hive.ql.Driver.compile(Driver.java:303)
在org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1067)
在org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1129)
在org.apache.hadoop.hive.ql.Driver.run(Driver.java:1004)
在org.apache.hadoop.hive.ql.Driver.run(Driver.java:994)
在org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:247)
在org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:199)
在org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:410)
在org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:783)
在org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
在org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
在java.lang.reflect.Method.invoke(Method.java:601)
在org.apache.hadoop.util.RunJar.main(RunJar.java:156)
解决方案
我发现,我正在使用Hadoop版本1.X.x与蜂巢0.14,由于版本不一致,我得到这个问题。当我切换到Hadoop的2.X.x,它工作得很好。
有关的参考,我发现这个链接结果
这基本上是一个中国的论坛,需要通过谷歌翻译翻译。
I have created a table in hive 0.14 with transactional property, as soon as I run a insert or select I get the following error.
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.hadoop.mapred.JobConf.unset(Ljava/lang/String;)V
at org.apache.hadoop.hive.ql.io.HiveInputFormat.pushFilters(HiveInputFormat.java:432)
at org.apache.hadoop.hive.ql.exec.FetchTask.initialize(FetchTask.java:76)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:443)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:303)
at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1067)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1129)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1004)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:994)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:247)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:199)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:410)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:783)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
解决方案
I have found that , I was using hadoop version 1.X.x with hive 0.14, due to the version inconsistencies, I am getting this issue. When I switched to hadoop 2.X.x, it worked fine
For the reference, I found this on the link
http://ask.csdn.net/questions/155380
This is basically a chinese forum, needs to be translated through google translate.
这篇关于问题的Apache蜂巢0.14运行DML查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!