hive -- java.io.IOException: Cannot create an instance of InputSplit 博客分类: hadoophbasehive hadoophbasehive&">nbsp; 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>
时间: 2024-09-12 14:33:46