logback

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

logback

Dmitry Golubets
Hi,

documentation says: "Users willing to use logback instead of log4j can just exclude log4j (or delete it from the lib/ folder)."

But then Flink just doesn't start. I added logback-classic 1.10 to it's lib folder, but still get NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

Something else I should do? Or should I use an older logback version?

Best regards,
Dmitry
Reply | Threaded
Open this post in threaded view
|

Re: logback

rmetzger0

On Tue, Feb 7, 2017 at 1:07 PM, Dmitry Golubets <[hidden email]> wrote:
Hi,

documentation says: "Users willing to use logback instead of log4j can just exclude log4j (or delete it from the lib/ folder)."

But then Flink just doesn't start. I added logback-classic 1.10 to it's lib folder, but still get NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

Something else I should do? Or should I use an older logback version?

Best regards,
Dmitry

Reply | Threaded
Open this post in threaded view
|

Re: logback

Dmitry Golubets
Hi Robert,

After reading that link I've added the missing log4j-over-slf4j.
Now Flink is able to start, but I get another exception when uploading a job:
NoClassDefFoundError: org/slf4j/event/LoggingEvent

...
	at org.apache.flink.api.scala.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:170)
	at org.apache.flink.api.scala.ClosureCleaner$.clean(ClosureCleaner.scala:164)



Best regards,
Dmitry

On Tue, Feb 7, 2017 at 4:23 PM, Robert Metzger <[hidden email]> wrote:

On Tue, Feb 7, 2017 at 1:07 PM, Dmitry Golubets <[hidden email]> wrote:
Hi,

documentation says: "Users willing to use logback instead of log4j can just exclude log4j (or delete it from the lib/ folder)."

But then Flink just doesn't start. I added logback-classic 1.10 to it's lib folder, but still get NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

Something else I should do? Or should I use an older logback version?

Best regards,
Dmitry


Reply | Threaded
Open this post in threaded view
|

Re: logback

Dmitry Golubets
Update: I've now used 1.1.3 versions as in the example in the docs and it works!
Looks like these is an incompatibility with the latest logback.

Best regards,
Dmitry

On Wed, Feb 8, 2017 at 3:20 PM, Dmitry Golubets <[hidden email]> wrote:
Hi Robert,

After reading that link I've added the missing log4j-over-slf4j.
Now Flink is able to start, but I get another exception when uploading a job:
NoClassDefFoundError: org/slf4j/event/LoggingEvent

...
	at org.apache.flink.api.scala.ClosureCleaner$.ensureSerializable(ClosureCleaner.scala:170)
	at org.apache.flink.api.scala.ClosureCleaner$.clean(ClosureCleaner.scala:164)



Best regards,
Dmitry

On Tue, Feb 7, 2017 at 4:23 PM, Robert Metzger <[hidden email]> wrote:

On Tue, Feb 7, 2017 at 1:07 PM, Dmitry Golubets <[hidden email]> wrote:
Hi,

documentation says: "Users willing to use logback instead of log4j can just exclude log4j (or delete it from the lib/ folder)."

But then Flink just doesn't start. I added logback-classic 1.10 to it's lib folder, but still get NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException

Something else I should do? Or should I use an older logback version?

Best regards,
Dmitry