Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-6750

Hive printing debug information in stdout after the end of CLI session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.14.0
    • 0.13.0
    • CLI
    • None
    • Open JDK6

    Description

      $ 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
      

      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:

                  System.out.println ("classLoader = " + classLoader);
                  System.out.println ("SharedSecrets.getJavaNetAccess()="+SharedSecrets.getJavaNetAccess());
      

      See line 80-81 at http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/sun/misc/ClassLoaderUtil.java.

      Attachments

        1. HIVE-6750.1.patch
          2 kB
          Vaibhav Gumashta
        2. HIVE-6750.2.patch
          2 kB
          Vaibhav Gumashta

        Issue Links

          Activity

            People

              vgumashta Vaibhav Gumashta
              vgumashta Vaibhav Gumashta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: