最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

classloader - Kafka Kraft is not taking "org.apache.kafka.clients.admin.AdminClient" - Stack Overflow

programmeradmin1浏览0评论

When starting Kafka with Kraft its not taking up ".apache.kafka.clients.admin.AdminClient" where as with zookeeper its working fine. I'm getting ClassNotFoundException as its not taking up this.

For troubleshooting had tried loading the class as shown in the below snippet,

ClassLoader classLoader = ClassLoader.getSystemClassLoader();
      Class<?> adminClient = Class.forName(".apache.kafka.clients.admin.AdminClient", true, classLoader);
      AdminClient adminClientInstance = AdminClient.create(properties);

But still the ClassNotFoundException is thrown.

Also tried the below one:

"classLoaderOf=kafka.server.KafkaServer"

Checked the Heap-Dump of my Kraft application can could not find ".apache.kafka.clients.admin.AdminClient" in there.

发布评论

评论列表(0)

  1. 暂无评论