Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-10288

Explicit reference to Log4JLogger breaks non-log4j users

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • util
    • None
    • Reviewed

    Description

      In HttpRequestLog, we make an explicit reference to the Log4JLogger class for an instanceof check. If the log4j implementation isn't actually on the classpath, the instanceof check throws NoClassDefFoundError instead of returning false. This means that dependent projects that don't use log4j can no longer embed HttpServer – typically this is an issue when they use MiniDFSCluster as part of their testing.

      Attachments

        1. hadoop-10288.txt
          1 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: