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

Source distribution tests fails with logging ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.5.5, 1.6.2
    • None
    • Build System, Tests
    • None

    Description

      fhueske and dawidwys have reported a test error while running the tests for the source distribution of 1.5.5-rc1 and 1.6.2-rc1.

      1.6:

      ERROR StatusLogger Unable to create class
      org.apache.flink.streaming.connectors.elasticsearch5.shaded.org.apache.logging.slf4j.SLF4JLoggerContextFactory
      specified in
      file:/home/fhueske/Downloads/flink-1.6.2/flink-connectors/flink-connector-elasticsearch5/target/classes/META-INF/log4j-provider.properties
        java.lang.ClassNotFoundException:
      org.apache.flink.streaming.connectors.elasticsearch5.shaded.org.apache.logging.slf4j.SLF4JLoggerContextFactory
           at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           at
      org.apache.logging.log4j.spi.Provider.loadLoggerContextFactory(Provider.java:96)
           at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:91)
           at
      org.elasticsearch.common.logging.ESLoggerFactory.getLogger(ESLoggerFactory.java:49)
           at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:105)
           at org.elasticsearch.node.Node.<init>(Node.java:237)
           at
      org.apache.flink.streaming.connectors.elasticsearch.EmbeddedElasticsearchNodeEnvironmentImpl$PluginNode.<init>(EmbeddedElasticsearchNodeEnvironmentImpl.java:78)
           at
      org.apache.flink.streaming.connectors.elasticsearch.EmbeddedElasticsearchNodeEnvironmentImpl.start(EmbeddedElasticsearchNodeEnvironmentImpl.java:54)
           at
      org.apache.flink.streaming.connectors.elasticsearch.ElasticsearchSinkTestBase.prepare(ElasticsearchSinkTestBase.java:72) 
      

      1.5:

      Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
      Running org.apache.flink.addons.hbase.HBaseConnectorITCase
      Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.557 sec <<< FAILURE! - in org.apache.flink.addons.hbase.HBaseConnectorITCase
      org.apache.flink.addons.hbase.HBaseConnectorITCase  Time elapsed: 0.556 sec  <<< ERROR!
      java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLocationAwareLog cannot be cast to org.apache.commons.logging.impl.Log4JLogger
      
      org.apache.flink.addons.hbase.HBaseConnectorITCase  Time elapsed: 0.557 sec  <<< ERROR!
      java.lang.NullPointerException

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: