Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1371

Remove unsupported SLF4J bindings from classpath

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.9.0
    • build
    • None

    Description

      Running ./mvn clean install in orc/java on commit 32dffd30f747f7129b9b9b9a9ef8022660b28b5a shows many warning messages of the following form.

      SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
      SLF4J: Ignoring binding found at [jar:file:/home/stamatis/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Ignoring binding found at [jar:file:/home/stamatis/.m2/repository/ch/qos/logback/logback-classic/1.2.10/logback-classic-1.2.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
      

      ORC uses slf4j-api version at 2.0.6 that is not compatible with:

      • slf4j-log4j12/1.7.10 (coming transitively from hadoop)
      • logback-classic/1.2.10 (coming transitively from zookeeper)

      thus the respective jars should not be in the classpath.

      Adding the necessary exclusions in the pom file fixes the problem and makes the warnings disappear.

      Attachments

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              zabetak Stamatis Zampetakis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: