You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Vaibhav Gumashta (JIRA)" <ji...@apache.org> on 2014/03/26 01:40:17 UTC

[jira] [Commented] (HIVE-6750) Hive printing debug information in stdout after the end of CLI session

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

Vaibhav Gumashta commented on HIVE-6750:
----------------------------------------

cc [~navis] [~ashutoshc]

> Hive printing debug information in stdout after the end of CLI session
> ----------------------------------------------------------------------
>
>                 Key: HIVE-6750
>                 URL: https://issues.apache.org/jira/browse/HIVE-6750
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 0.14.0
>         Environment: Open JDK6
>            Reporter: Vaibhav Gumashta
>            Assignee: Vaibhav Gumashta
>             Fix For: 0.14.0
>
>         Attachments: HIVE-6750.1.patch
>
>
> {noformat}
> $ hive -e "show tables;"
> OK
> table1
> table2
> table3
> Time taken: 0.694 seconds, Fetched: 3 row(s)
> classLoader = java.net.URLClassLoader@29978933
> SharedSecrets.getJavaNetAccess()=java.net.URLClassLoader$7@4b7d03c5
> {noformat}
> Observe the last two lines that are printed upon the end of Hive CLI session. 
> JavaUtils#closeClassLoader uses reflection to invoke sun.misc.ClassLoaderUtil.releaseLoader. Just peeking at the implementation of this method clearly showed this:
> {code}
>             System.out.println ("classLoader = " + classLoader);
>             System.out.println ("SharedSecrets.getJavaNetAccess()="+SharedSecrets.getJavaNetAccess());
> {code}
> See line 80-81 at http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/misc/ClassLoaderUtil.java.



--
This message was sent by Atlassian JIRA
(v6.2#6252)