Intel-bigdata / SSM

Smart Storage Management for Big Data, a comprehensive hot/cold data optimized solution
Apache License 2.0
133 stars 67 forks source link

Upgrade log4j from 1.2.17 to 2.17.0 #2239

Closed PHILO-HE closed 2 years ago

PHILO-HE commented 2 years ago

Most modules in SSM depend on Hadoop jars which further depend on log4j. And we also used log4j in our own SSM code. To upgrade it, we excluded 1.2.17 dependencies and introduced 2.17.0 dependencies. And to let the code calling old version of log4j still work, we also introduced another dependency called log4j-1.2-api (2.17.0 version). With such handling, dependency issue can be avoided. And a setting is also required to tell 2.17.0 version of log4j to find its configuration file, which is different from 1.x versions.