hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thejas M Nair (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-6238) HadoopShims.getLongComparator needs to be public
Date Mon, 20 Jan 2014 22:56:20 GMT

    [ https://issues.apache.org/jira/browse/HIVE-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13876946#comment-13876946
] 

Thejas M Nair commented on HIVE-6238:
-------------------------------------

I am not sure why this didn't result in an error when I ran 'mvn clean install ..' or 'mvn
 package  -Pdist ..' , and only showed up when I ran "bin/hive". 
{code}
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.hadoop.hive.cli.CliDriver.getCommandCompletor(CliDriver.java:541)
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:758)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:686)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:625)
        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:156)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:115)
        at org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerUDAF(FunctionRegistry.java:1022)
        at org.apache.hadoop.hive.ql.exec.FunctionRegistry.registerUDAF(FunctionRegistry.java:1015)
        at org.apache.hadoop.hive.ql.exec.FunctionRegistry.<clinit>(FunctionRegistry.java:372)
        ... 9 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:113)
        ... 12 more
Caused by: java.lang.Error: Unresolved compilation problem:
        The method getLongComparator() is undefined for the type HadoopShims

        at org.apache.hadoop.hive.ql.udf.UDAFPercentile.<init>(UDAFPercentile.java:51)
        ... 17 more

{code}

[~brocknoland], Would you know why the compilation errors such as this one and HIVE-6196 don't
result in the mvn commands failing ?





> HadoopShims.getLongComparator needs to be public
> ------------------------------------------------
>
>                 Key: HIVE-6238
>                 URL: https://issues.apache.org/jira/browse/HIVE-6238
>             Project: Hive
>          Issue Type: Bug
>          Components: Shims
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>         Attachments: HIVE-6238.1.patch
>
>
> HadoopShims.getLongComparator  is package private, it should be public as it is used
from other classes.
> {code}
> Caused by: java.lang.Error: Unresolved compilation problem:
>         The method getLongComparator() is undefined for the type HadoopShims
>         at org.apache.hadoop.hive.ql.udf.UDAFPercentile.<init>(UDAFPercentile.java:51)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message