Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-11304 Migrate to Log4j2 from Log4j 1.x
  3. HIVE-11572

Datanucleus loads Log4j1.x Logger from AppClassLoader

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.0
    • Logging
    • None

    Description

      As part of HIVE-11304, we moved from Log4j1.x to Log4j2. But DataNucleus log messages gets logged to console when launching the hive cli. The reason is DataNucleus is trying to load Log4j1.x Logger by traversing its class loader. Although we use log4j-1.2-api bridge we are loading log4j-1.2.16 jar that was pulled by ZooKeeper. We should make sure that there is no log4j-1.2.16 in datanucleus classloader hierarchy (classpath).

      DataNucleus logger has this

      NucleusLogger.class.getClassLoader().loadClass("org.apache.log4j.Logger");
                  loggerClass = org.datanucleus.util.Log4JLogger.class;
      

      Attachments

        1. HIVE-11572.patch
          0.9 kB
          Prasanth Jayachandran

        Activity

          People

            prasanth_j Prasanth Jayachandran
            prasanth_j Prasanth Jayachandran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: