You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Ankit Jain <an...@gmail.com> on 2011/04/15 13:14:30 UTC
Hive Server Error
Hi,
I am able to launch the map-reduce job (select userid from user) from hive
shell.I am also passing the auxpath parameter to the shell (specifying the
Hive/HBase integration related jars).
However,when i trying to launch the map-reduce job(select userid from User)
from jdbc client.The map reduce job launches but the map task fails with the
following error:
java.io.IOException: Cannot create an instance of InputSplit class =
org.apache.hadoop.hive.hbase.HBaseSplit:org.apache.hadoop.hive.hbase.HBaseSplit
org.apache.hadoop.hive.ql.io.HiveInputFormat$HiveInputSplit.readFields(HiveInputFormat.java:143)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:333)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
at org.apache.hadoop.mapred.Child.main(Child.java:170)
This basically indicates that the Mapper task is unable to locate the
Hive/HBase storage handler that it requires when running. This happens even
though this has been specified in the auxpath and uploaded to HDFS.
Is there a way to specify the auxpath parameter(Hive/HBase integration
related jars) when running hive in hive server mode.
Thanks,
Ankit
Re: Hive Server Error
Posted by 김영우 <wa...@gmail.com>.
Hi Ankit,
I'm not sure but you can add a following property to hive-site.xml.
<property>
<name>hive.aux.jars.path</name>
<value>file:///home/user/xxx.jar,file:///home/user/xxx2.jar</value>
</property>
So, add the property and restart hive server.
- Youngwoo
2011/4/15 Ankit Jain <an...@gmail.com>
> Hi,
> I am able to launch the map-reduce job (select userid from user) from hive
> shell.I am also passing the auxpath parameter to the shell (specifying the
> Hive/HBase integration related jars).
> However,when i trying to launch the map-reduce job(select userid from User)
> from jdbc client.The map reduce job launches but the map task fails with the
> following error:
> java.io.IOException: Cannot create an instance of InputSplit class =
>
> org.apache.hadoop.hive.hbase.HBaseSplit:org.apache.hadoop.hive.hbase.HBaseSplit
>
> org.apache.hadoop.hive.ql.io.HiveInputFormat$HiveInputSplit.readFields(HiveInputFormat.java:143)
> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:333)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307)
> at org.apache.hadoop.mapred.Child.main(Child.java:170)
>
> This basically indicates that the Mapper task is unable to locate the
> Hive/HBase storage handler that it requires when running. This happens even
> though this has been specified in the auxpath and uploaded to HDFS.
>
> Is there a way to specify the auxpath parameter(Hive/HBase integration
> related jars) when running hive in hive server mode.
>
> Thanks,
> Ankit
>