[jira] [Commented] (HIVE-6238) HadoopShims.getLongComparator needs to be public
[ https://issues.apache.org/jira/browse/HIVE-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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)
[jira] [Commented] (HIVE-6238) HadoopShims.getLongComparator needs to be public
[ https://issues.apache.org/jira/browse/HIVE-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13876991#comment-13876991 ] Brock Noland commented on HIVE-6238: Weird. Can you verify if the HadoopShims interface it's loading is the latest? 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)
[jira] [Commented] (HIVE-6238) HadoopShims.getLongComparator needs to be public
[ https://issues.apache.org/jira/browse/HIVE-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13876994#comment-13876994 ] Brock Noland commented on HIVE-6238: Also with regards to HIVE-6196 I believe that javac will compile classes in the wrong directory, but java just won't run them. 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)
[jira] [Commented] (HIVE-6238) HadoopShims.getLongComparator needs to be public
[ https://issues.apache.org/jira/browse/HIVE-6238?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13877022#comment-13877022 ] Navis commented on HIVE-6238: - I think it's not the reason of the problem. HadoopShims is public interface and all methods in it are all public (isn't it?) what ever it is defined. 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)