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

When starting Kafka with Kraft its not taking up ".apache.kafka.clients.admin.AdminClient" wh

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744469087a4575696.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信