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.