`
kissmett
  • 浏览: 39130 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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

阅读更多
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>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics