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

Rajkumar Singh commented on HIVE-22397:
---------------------------------------

[~ngangam] the reproducer I ran is with beeline, I am aware of the 
hive.aux.jars.path which will resolve the issue but the problem here is one 
scenario it is working while in other it is failing, it should be consistent 
with the result.

The reason for failure: UDFClassLoader will always have all the jar/class per 
session state but getDeserializer try to look up the class from the 
conf.getClassByName which do lookup 
[https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java#L338]
 and failed with NEGATIVE_CACHE_SENTINEL.

with the changes include in this Jira hive will try to look for the class 
loaded by UDFClassLoader in the event of conf.getClassByName failure.

> "describe table"  statement for the table backed by custom storage handler 
> fail with CNF
> ----------------------------------------------------------------------------------------
>
>                 Key: HIVE-22397
>                 URL: https://issues.apache.org/jira/browse/HIVE-22397
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 3.1.2
>            Reporter: Rajkumar Singh
>            Assignee: Rajkumar Singh
>            Priority: Major
>         Attachments: HIVE-22397.patch
>
>
> Steps to Repro:
> {code:java}
> 1) describe customsdtable;
> 2) ADD JAR hdfs:///user/hive/customsdtable.jar;
> 3) describe customsdtable;
> CNF is expected for #1 but even adding the custome serde, hive fail with 
> following exception for statement #3
> Error: Error while processing statement: FAILED: Execution Error, return code 
> 1 from org.apache.hadoop.hive.ql.exec.DDLTask. 
> java.lang.ClassNotFoundException
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to