Hive Hbase集成不适用于以下版本。 蜂巢 - 1.2.1 Hbase - 1.2.3
我们可以使用HBaseStorageHandler为Hbase表创建视图,但无法通过该视图向Hbase插入数据。以下是例外
错误:java.lang.RuntimeException:java.lang.NoSuchMethodError:org.apache.hadoop.hbase.client.Put.setDurability(Lorg / apache / hadoop / hbase / client / Durability;)V 在org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:172) 在org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54) 在org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:453) 在org.apache.hadoop.mapred.MapTask.run(MapTask.java:343) 在org.apache.hadoop.mapred.YarnChild $ 2.run(YarnChild.java:164) at java.security.AccessController.doPrivileged(Native Method) 在javax.security.auth.Subject.doAs(Subject.java:422) 在org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) 在org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158) 引起:java.lang.NoSuchMethodError:org.apache.hadoop.hbase.client.Put.setDurability(Lorg / apache / hadoop / hbase / client / Durability;)V at org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat $ MyRecordWriter.write(HiveHBaseTableOutputFormat.java:142) at org.apache.hadoop.hive.hbase.HiveHBaseTableOutputFormat $ MyRecordWriter.write(HiveHBaseTableOutputFormat.java:117) 在org.apache.hadoop.hive.ql.io.HivePassThroughRecordWriter.write(HivePassThroughRecordWriter.java:40) 在org.apache.hadoop.hive.ql.exec.FileSinkOperator.process(FileSinkOperator.java:753) 在org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:837) 在org.apache.hadoop.hive.ql.exec.SelectOperator.process(SelectOperator.java:88) 在org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:837) 在org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:97) 在org.apache.hadoop.hive.ql.exec.MapOperator $ MapOpCtx.forward(MapOperator.java:162) 在org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:508) 在org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:163) ......还有8个