[
https://issues.apache.org/jira/browse/HIVE-22397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16967910#comment-16967910
]
Naveen Gangam commented on HIVE-22397:
--------------------------------------
While the mechanics of configuring UDFs and SerDes are the similar, they are
and should be treated different within Hive.
UDFs can be temporary or permanent. Temp UDFs are only visible in a user's
JDBC/beeline session and unavailable to other users. Hence these UDF classes
are loaded via a session specific classloader aka UDFClassloader. When the UDF
is dropped these classes are unloaded by recycling this CL.
Permanent UDFs are persistent and are meant to be available to all user
sessions. So the recommended means to install these is via the
hive.aux.jars.path or hive.reloadable.aux.jars.path.
SerDe are meant to be system/service libraries meant to be installed by admins
at startup and not user-installed.
> "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)