[slf4j-user] commons-logging Log4JLogger in slf4j

Vitalii Diravka vitalii at apache.org
Thu Sep 6 21:29:37 CEST 2018


Hi all!

I working on updating hadoop libraries in Apache Drill project.
hadoop-hdfs uses commons-logging library, but Drill uses jcl-over-slf4j and
bans commons-logging.

I faced the following issue:
java.lang.NoClassDefFoundError: org/apache/commons/logging/impl/Log4JLogger
[1]
I even didn't find this class with the same path in any slf4j library.

Is that possible to solve the issue without enabling commons-logging in
Drill project? Looks like Log4JLogger class
in org.apache.commons.logging.impl of jcl-over-slf4j [2] could resolve it.
Should it be there? But then it will be the question to the dev list.

[1]
https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/MetricsLoggerTask.java#L152
[2]
https://github.com/qos-ch/slf4j/tree/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20180906/199d80c8/attachment.html>


More information about the slf4j-user mailing list