Apache Kafka 版本 2.1.1 和 log4j 最新版本 2.17

huangapple go评论59阅读模式
英文:

Apache Kafka v. 2.1.1 and log4j latest v 2.17

问题

我们在将log4j从1.2.17升级到2.17以避免Log4j引起的漏洞时,在Zookeeper中遇到了问题。升级后,Zookeeper无法启动,并且移除了旧的log4j jar文件,因此我们需要知道建议升级到哪个版本的Apache Kafka。

zookeeper错误

我们简单地移除了旧的jar文件,并将其替换为libs目录中新安装的log4j和SLF4j的最新jar文件,但这并没有解决问题。

英文:

We encountered a problem in Zookeeper when upgrading log4j from 1.2.17 to 2.17 in order to avoid a vulnerability caused by Log4j.
The zookeeper is not starting with the upgraded version and removing the old jar file of the old log4j, so we need to know what version of Apache Kafka is recommended that I upgrade to.

zookeeper error

We simply removed the old jar file and replaced it with the newly installed latest jar files for log4j and SLF4j in the libs directory, but this did not resolve the problem.

答案1

得分: 0

最新版本的Kafka和Zookeeper已经通过迁移到reload4j来解决了log4j的问题。请升级它们,按照它们自己的升级和发布说明进行操作。

由于这两个项目都未使用log4j2库进行编译,因此不能简单地替换日志jar文件并期望一切继续工作。

英文:

Latest Kafka and Zookeeper already have addressed log4j issues by migrating to reload4j. Upgrade those instead, following their own upgrade and release notes

You cannot simply replace logging jar files and expect anything continue to work, as neither project is compiled with log4j2 libraries

huangapple
  • 本文由 发表于 2023年4月13日 20:17:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76005330.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定