Hive0.10.0 An exception in the stream "main" java.lang.NoSuchMethodError: org.apache.thrift.EncodingUtils.setBit (BIZ) B

could you help me? I am using hive 0.10.0 hive> show tables;

Exception in thread "main" java.lang.NoSuchMethodError: org.apache.thrift.EncodingUtils.setBit(BIZ)B at org.apache.hadoop.hive.ql.plan.api.Query.setStartedIsSet(Query.java:487) at org.apache.hadoop.hive.ql.plan.api.Query.setStarted(Query.java:474) at org.apache.hadoop.hive.ql.QueryPlan.updateCountersInQueryPlan(QueryPlan.java:309) at org.apache.hadoop.hive.ql.QueryPlan.getQueryPlan(QueryPlan.java:450) at org.apache.hadoop.hive.ql.QueryPlan.toString(QueryPlan.java:622) at org.apache.hadoop.hive.ql.history.HiveHistory.logPlanProgress(HiveHistory.java:503) at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1097) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:973) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:893) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:412) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:613) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.hadoop.util.RunJar.main(RunJar.java:208) 
+4
source share
3 answers

This issue occurs due to an incompatible version of the jb version of libthrift. So, I downloaded the latest version of libthrift-0.9.3.jar and it worked for me.

+2
source

I ran into a similar problem. The version of Hive you are using is not compatible with Hadoop. The savings version used by hadoop is different from the one used by the hive. It's good to use a compatible version of Hive or replace the thirft (jar) library used by Hadoop using a single hive.

+1
source

When I ran into this problem, this was my situation:

In HADOOP_HOME/lib I posted mahout-examples-0.7-job.jar , which should not be there for some other exercises.

When I start Hive, it gave me the same error as in your question.

I moved mahout.Xyjar from lib , then ran hive CLi and it worked like a charm.

+1
source

Source: https://habr.com/ru/post/1489648/


All Articles