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

LLAP: Always package the log4j2 API jar for org.apache.log4j

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      The log4j 1 and 2.x jars have NDC classes with identical package names.

                    // log4j-1.2-API needed for NDC
                    org.apache.log4j.NDC.class,
      

      Queries fail with

      java.lang.ClassCastException: org.apache.log4j.NDC$DiagnosticContext cannot be cast to java.lang.String
          at org.apache.hadoop.hive.llap.daemon.impl.TaskRunnerCallable.setMDCFromNDC(TaskRunnerCallable.java:312) ~[hive-llap-server-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
      

      If the service driver packages the log4j1.x jar instead of the 2.x API shim jar.

      Attachments

        1. HIVE-18597.1.patch
          0.8 kB
          Gopal Vijayaraghavan

        Activity

          People

            gopalv Gopal Vijayaraghavan
            gopalv Gopal Vijayaraghavan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: