我是 hadoop 新手,我正在尝试本教程: https ://cwiki.apache.org/confluence/display/Hive/HBaseIntegration
1.使用参数成功启动hive:hive --auxpath /cygdrive/c/Hadoop/hive-0.9.0/lib/hive-hbase-handler-0.9.0.jar,/cygdrive/c/javaHBase/hbase -0.94.6/hbase-0.94.6.jar,/cygdrive/c/Hadoop/hive-0.9.0/lib/zookeeper-3.4.3.jar,/cygdrive/c/Hadoop/hive-0.9.0/lib /guava-r09.jar -hiveconf hbase.master=localhost:60010
2.启动hbase成功。
3.“CREATE TABLE hbase_table_1”成功完成
4.我用命令列表和显示表验证,一切正常
这是我的问题“INSERT OVERWRITE TABLE hbase_table_1 SELECT * FROM pokes WHERE foo=98;”
我在“htp://localhost:50060/tasklog?attemptid...”中搜索时收到此错误消息
java.lang.ClassNotFoundException: org/apache/hadoop/hive/hbase/HBaseSerDe
Continuing ...
java.lang.ClassNotFoundException:
org/apache/hadoop/hive/hbase/HiveHBaseTableInputFormat
Continuing ...
java.lang.ClassNotFoundException:
org/apache/hadoop/hive/hbase/HiveHBaseTableOutputFormat
Continuing ...
java.lang.NullPointerException
Continuing ...
java.lang.NullPointerException
at
org.apache.hadoop.hive.ql.exec.FileSinkOperator.initializeOp(FileSinkOperator.java:280)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
at org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:62)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
at org.apache.hadoop.hive.ql.exec.FilterOperator.initializeOp(FilterOperator.java:78)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
at org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
...
我试图将 hive jar 复制到 hbase install 和副 vesa...注意:我使用 hive 命令添加了必要的 JARS:ADD JAR C:...\hive-hbase-handler-0.9.0.jar 等。
hbase 版本:0.94.6 配置单元版本:0.9.0
任何额外的出口?还是配置?我需要帮助!非常感谢!