hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Weeks (JIRA)" <>
Subject [jira] [Commented] (HIVE-21409) Initial SessionState ClassLoader Reused For Subsequent Sessions
Date Tue, 19 Mar 2019 03:08:00 GMT


Shawn Weeks commented on HIVE-21409:

I've verified this bug in Hive 3.1 as well. A combination of Add Jar and implicitly added
UDF Jars pollute the session classloader.

> Initial SessionState ClassLoader Reused For Subsequent Sessions
> ---------------------------------------------------------------
>                 Key: HIVE-21409
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: Shawn Weeks
>            Priority: Minor
>         Attachments: create_class.sql, run.sql, setup.sql
> It appears that the first ClassLoader attached to a SessionState Static Instance is being
reused as the parent for all future sessions. This causes any libraries added to the class
path on the initial session to be added to future sessions. It also appears that further sessions
may be adding jars to this initial ClassLoader as well leading to the class path getting more
and more polluted. This occurring on a build including HIVE-11878. I've included some examples
that greatly exaggerate the problem.

This message was sent by Atlassian JIRA

View raw message