phoenix-connectors icon indicating copy to clipboard operation
phoenix-connectors copied to clipboard

PHOENIX-7600 Replace commons-logging with slf4j

Open meszinorbi opened this issue 7 months ago • 2 comments

meszinorbi avatar May 21 '25 14:05 meszinorbi

Please check the test logs

[INFO] Running org.apache.phoenix.hive.HiveMapReduceIT Error: Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.009 s <<< FAILURE! -- in org.apache.phoenix.hive.HiveMapReduceIT Error: org.apache.phoenix.hive.HiveMapReduceIT -- Time elapsed: 0.002 s <<< ERROR! java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/commons/logging/impl/Log4JLogger at org.apache.phoenix.query.BaseTest.initMiniCluster(BaseTest.java:552) at org.apache.phoenix.query.BaseTest.setUpTestCluster(BaseTest.java:451) at org.apache.phoenix.query.BaseTest.checkClusterInitialized(BaseTest.java:437)

Looks like you need to add log4j-1.2-api to the test classpath.

stoty avatar Jun 02 '25 08:06 stoty

Hmm. Maybe the problem is different.

It's missing the commons-logging classes, not the log4j12 ones.

In any case the test classpath is broken.

stoty avatar Jun 02 '25 08:06 stoty