I have just created KIP-60 ( https://cwiki.apache.org/confluence/display/KAFKA/KIP-60+-+Make+Java+client+classloading+more+flexible) to enable the Kafka Java clients to be configured and run in any classloading environment including OSGi. It is a simple but flexible approach that enables custom classes to be loaded by applications rather than Kafka and fixes the issues with classloading of default classes.
Comments and suggestions are welcome. Thank you... Regards, Rajini