flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1097) SLFJ warnings when running with Hadoop 2
Date Tue, 16 Sep 2014 16:05:34 GMT

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

ASF GitHub Bot commented on FLINK-1097:
---------------------------------------

GitHub user tillrohrmann opened a pull request:

    https://github.com/apache/incubator-flink/pull/121

    [FLINK-1097] Fixed multiple slf4j bindings when using Hadoop2

    I excluded all slf4j-log4j12 transitive dependencies to get rid off the warning that slf4j
finds multiple slf4j bindings in the classpath. Additionally, I added log4j-over-slf4j and
excluded all log4j transitive dependencies so that slf4j handles also legacy log4j logging
messages from dependencies.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tillrohrmann/incubator-flink FLINK-1097

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-flink/pull/121.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #121
    
----
commit b9f76d59ecee99f058a9fa28021a2730bed6e43e
Author: Till Rohrmann <trohrmann@apache.org>
Date:   2014-09-16T16:02:30Z

    Excluded slf4j-log4j12 as transitive dependency in order to not have multiple slf4j bindings
in the class path. Added log4j-overslf4j and excluded log4j transitive dependencies to collect
log4j outputs.

----


> SLFJ warnings when running with Hadoop 2
> ----------------------------------------
>
>                 Key: FLINK-1097
>                 URL: https://issues.apache.org/jira/browse/FLINK-1097
>             Project: Flink
>          Issue Type: Improvement
>          Components: Local Runtime
>    Affects Versions: 0.7-incubating
>            Reporter: Ufuk Celebi
>            Priority: Minor
>
> I get this warning when running Flink with Hadoop 2 (I haven't tested Hadoop 1).
> {code}
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in [jar:file:.../flink-build/lib/flink-dist-0.7-incubating-SNAPSHOT-yarn-uberjar.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:.../flink-build/lib/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in [jar:file:.../flink-build/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
> log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message