Hi,

Can you execute the hive-ql in hive client? i got this error below:

$ ./hive
Exception in thread "main" java.lang.RuntimeException: Could not load shims
in class null
        at org.apache.hadoop
.hive.shims.ShimLoader.loadShims(ShimLoader.java:86)
        at org.apache.hadoop
.hive.shims.ShimLoader.getHadoopShims(ShimLoader.java:62)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:234)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:192)
Caused by: java.lang.NullPointerException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at org.apache.hadoop
.hive.shims.ShimLoader.loadShims(ShimLoader.java:83)
        ... 7 more

and cannot execute hive, is it HIVE dont support hadoop0.21.0 now?

Thanks & Regards,
Singo


On Wed, Oct 13, 2010 at 2:51 AM, Daisuke Fujiwara (JIRA) <j...@apache.org>wrote:

>
>     [
> https://issues.apache.org/jira/browse/HIVE-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Daisuke Fujiwara updated HIVE-1612:
> -----------------------------------
>
>    Attachment: HIVE-1612.patch
>
> Hi,
> I have managed to build Hive (trunk -r 1000628) against Hadoop 0.21.0.
>
> Following is what I had to do to make it work.
> 1. build Hive as instructed in Hive wiki (ant pacakge).
> 2. Copy hadoop-0.21.0.tar.gz to ${HIVE_DIR}/build/hadoopcore, untar it, and
> create/touch the "hadoop-0.21.0.installed" file
> 3. Apply the patch
> 4. build Hive again by issuing ant package "-Dhadoop.version=0.21.0
> -Doffline=true"
>
> I understand that the patch and process to build is not in the pristine
> forms, but I would like to get some feedback and see if I can pursue this
> further.
>
> Thanks.
>
> > Cannot build hive for hadoop 0.21.0
> > -----------------------------------
> >
> >                 Key: HIVE-1612
> >                 URL: https://issues.apache.org/jira/browse/HIVE-1612
> >             Project: Hadoop Hive
> >          Issue Type: Bug
> >    Affects Versions: 0.7.0
> >            Reporter: AJ Pahl
> >         Attachments: HIVE-1612.patch
> >
> >
> > Current trunk for 0.7.0 does not support building HIVE against the Hadoop
> 0.21.0 release.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>

Reply via email to