Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2975

Exclude logging dependencies from shaded Hadoop jar.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.9.1
    • None
    • Build System
    • None

    Description

      The shaded hadoop jar has Log4j included. Therefore when you try to use flink with logback/slf4j logging you will get warnings like:

      ```
      log4j:WARN No appenders could be found for logger (kafka.consumer.SimpleConsumer).
      log4j:WARN Please initialize the log4j system properly.
      ```
      even when you have the appropriate slf4j bridges in the classpath. I'd suggest to exclude the Log4j dependency from the shaded Hadoop jar and then let the end user decide on wether he wants to add log4j or a slf4j bridge to the classpath.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kork Jan Thomä
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: