flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Thomä (JIRA) <j...@apache.org>
Subject [jira] [Commented] (FLINK-2975) Exclude logging dependencies from shaded Hadoop jar.
Date Thu, 05 Nov 2015 11:27:27 GMT

    [ https://issues.apache.org/jira/browse/FLINK-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991556#comment-14991556

Jan Thomä commented on FLINK-2975:

Thank you very much, seems to be indeed a duplicate of FLINK-2703.

> Exclude logging dependencies from shaded Hadoop jar.
> ----------------------------------------------------
>                 Key: FLINK-2975
>                 URL: https://issues.apache.org/jira/browse/FLINK-2975
>             Project: Flink
>          Issue Type: Improvement
>          Components: Build System
>    Affects Versions: 0.9.1
>            Reporter: Jan Thomä
> 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.

This message was sent by Atlassian JIRA

View raw message