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

Luke Hutchison commented on FLINK-6019:
---------------------------------------

Yes, that was the problem, thank you. I had mis-diagnosed the problem -- it 
wasn't that there were two log4j instances running, the problem was that log4j 
and slf4j were both running, and were unbridged. To solve the problem, either 
{{jcl-over-slf4j}} (to bridge log4j to slf4j) or {{slf4j-jcl}} (to bridge slf4j 
to log4j) needs to be in the classpath.

> Some log4j messages do not have a loglevel field set, so they can't be 
> suppressed
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-6019
>                 URL: https://issues.apache.org/jira/browse/FLINK-6019
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>         Environment: Linux
>            Reporter: Luke Hutchison
>            Priority: Major
>
> Some of the log messages do not appear to have a loglevel value set, so they 
> can't be suppressed by setting the log4j level to WARN. There's this line at 
> the beginning which doesn't even have a timestamp:
> {noformat}
> Connected to JobManager at Actor[akka://flink/user/jobmanager_1#1844933939]
> {noformat}
> And then there are numerous lines like this, missing an "INFO" field:
> {noformat}
> 03/10/2017 00:01:14   Job execution switched to status RUNNING.
> 03/10/2017 00:01:14   DataSource (at readTable(DBTableReader.java:165) 
> (org.apache.flink.api.java.io.PojoCsvInputFormat))(1/8) switched to SCHEDULED 
> 03/10/2017 00:01:14   DataSink (count())(1/8) switched to SCHEDULED 
> 03/10/2017 00:01:14   DataSink (count())(3/8) switched to DEPLOYING 
> 03/10/2017 00:01:15   DataSink (count())(3/8) switched to RUNNING 
> 03/10/2017 00:01:17   DataSink (count())(6/8) switched to FINISHED 
> 03/10/2017 00:01:17   DataSource (at readTable(DBTableReader.java:165) 
> (org.apache.flink.api.java.io.PojoCsvInputFormat))(6/8) switched to FINISHED 
> 03/10/2017 00:01:17   Job execution switched to status FINISHED.
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to