Case
Trying to build some code which requires Kafka libraries and will be deployed to an HDP platform. Build succeeds but at runtime complains that classes cannot be found. Looking up Kafka version on HDP platform reveals something like 0.10.0.2.5.3.16-1
, a quick check on mvn reveals that no such Kafka library exists for this version. The nearest version is 0.10.0.2.5.3.42-1
which I'm using.
Symptoms
Runtime errors which say that classes or methods cannot be found, for instance kafka.javaapi.consumer.SimpleConsumer.<init>(Ljava/lang/String;IIILjava/lang/String;Ljava/lang/String;)V