首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

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

2013-04-20 
hive -- java.io.IOException: Cannot create an instance of InputSplithive中执行:select * from ht_cus

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>

热点排行