[
https://issues.apache.org/jira/browse/HIVE-26488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17581877#comment-17581877
]
Ayush Saxena commented on HIVE-26488:
-------------------------------------
The bug triggers due to Reflection, One reason being if some appication brings
in a higher version of Relections into the classpath, which happened in case
with me while trying to integrate with Ozone, Can not have a lower version of
Reflections 0.9.12, because of Guava conflicts. Reflections ditches Guava post
0.9.12 only.
Second, I observed this in a customer issue, where they were executing the
queries through a JAR, and they were facing the same NPE.
It looks some what like this issue, but not exactly the same one:
[https://github.com/ronmamo/reflections/issues/373]
The customer got away from using their custom jar to beeline query script, so
the env & the custom jar repro isn't with me to retry. But the NPE can be
reproduced, by just moving reflections to 0.9.12 and then runningĀ
TestMetaStoreMetrics
> Fix NPE in DDLSemanticAnalyzerFactory during compilation
> --------------------------------------------------------
>
> Key: HIVE-26488
> URL: https://issues.apache.org/jira/browse/HIVE-26488
> Project: Hive
> Issue Type: Sub-task
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
>
> *Exception Trace:*
> {noformat}
> java.lang.ExceptionInInitializerError
> at
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzerFactory.getInternal(SemanticAnalyzerFactory.java:62)
> at
> org.apache.hadoop.hive.ql.parse.SemanticAnalyzerFactory.get(SemanticAnalyzerFactory.java:41)
> at org.apache.hadoop.hive.ql.Compiler.analyze(Compiler.java:209)
> at org.apache.hadoop.hive.ql.Compiler.compile(Compiler.java:106)
> at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:507)
> at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:459)
> at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:424)
> at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:418)
> {noformat}
> *Cause:*
> {noformat}
> Caused by: java.lang.NullPointerException
> at
> org.apache.hadoop.hive.ql.ddl.DDLSemanticAnalyzerFactory.<clinit>(DDLSemanticAnalyzerFactory.java:84)
> ... 40 more
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)