你好,游客 登录
背景:
阅读新闻

hive -- java.io.IOException: Cannot create an instance of InputSplit

[日期:2013-04-09] 来源:  作者: [字体: ]
hive中执行:
select * from ht_custmer;  没问题;
执行:
select * from ht_customer where buycount>10;
报错:
java.io.IOException: Cannot create an instance of InputSplit class = org.apache.hadoop.hive.hbase.HBaseSplit:org.apache.hadoop.hive.hbase.HBaseSplit

是hive找不到此类,需要在 hive-site.xml中显性设置hive.aux.jars.path属性:
  <property>
    <name>hive.aux.jars.path</name>
    <value>file:///usr/lib/hive/lib/hive-hbase-handler-0.10.0-cdh4.2.0.jar,file:///usr/lib/hive/lib/hbase.jar,file:///usr/lib/hive/lib/zookeeper.jar</value>
  </property>




收藏 推荐 打印 | 录入:admin | 阅读:
相关新闻