[druid-user] Upgrading to log4j latest one

We are using Druid 0.19.0. We just replaced the old log4j with log4j-core-2.16.0.jar.

However, application is not starting up because of the below exception.

Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.core.util.ShutdownCallbackRegistry

Can you please help with this issue?


That is a known issue; I hope the list of resources in this post will help:

See particularly set log4j2.is.webapp to false if not set so that shutdown hooks are run by clintropolis · Pull Request #12056 · apache/druid · GitHub

Thanks for your response. I had seen the forum post earlier. The issue occurs in druid 0.22.1.

I am not sure what needs to be done in druid 0.19.0.

I already find the code

if (!properties.containsKey(“log4j2.is.webapp”)) {
properties.setProperty(“log4j2.is.webapp”, “false”);

in druid version 0.19.0.

Can you please help me understand if my understanding is correct?

Hm I’m not a King of the Code I’m afraid! You may want to query on that Github issue directly?

(I’m presuming that all of the process you’ve updated have been restarted already)