Vaibhav Gumashta created HIVE-6750:
--------------------------------------

             Summary: 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


{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)

Reply via email to