zhoulii commented on pull request #3884:
URL: https://github.com/apache/zeppelin/pull/3884#issuecomment-678613170


   > > > @zhoulii What is the log4j conflict issue ?
   > > 
   > > 
   > > @zjffdu when starting flink interpreter with `flink 1.11.1`, I find this 
exception, it‘s resulted from log4j conflict:
   > > ```
   > > SLF4J: Class path contains multiple SLF4J bindings.  
   > > SLF4J: Found binding in 
[jar:file:/flink/lib/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  
   > > SLF4J: Found binding in 
[jar:file:/opt/zeppelin/interpreter/flink/zeppelin-flink-0.9.0-SNAPSHOT.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 
[org.apache.logging.slf4j.Log4jLoggerFactory]
   > > ERROR StatusLogger Unable to access 
file:///opt/zeppelin/conf/log4j2.properties
   > >  java.io.FileNotFoundException: /opt/zeppelin/conf/log4j2.properties (No 
such file or directory)
   > >         at java.io.FileInputStream.open0(Native Method)
   > >         at java.io.FileInputStream.open(FileInputStream.java:195)
   > >         at java.io.FileInputStream.<init>(FileInputStream.java:138)
   > >         at java.io.FileInputStream.<init>(FileInputStream.java:93)
   > > ```
   > > 
   > > 
   > > btw, start flink interpreter with flink 1.10.0 is ok.
   > 
   > The reason is that flink 1.11 use log4j2 to replace log4j, and there's no 
log4j2.properties in zeppelin interpreter image.
   
   It's true, I think there are two ways to solve this issue: add 
log4j2.properties in conf or do not  add `$FLINK_HOME\lib\log4j*.jar`  to 
classpath when start flink interpreter.  


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to