Created on 08-26-2016 06:27 PM - edited 08-19-2019 03:26 AM
On HDP 2.5 TP Sandbox, running a storm topology for a telcom demo is giving me the below error:
java.lang.NoSuchFieldError: PLAINTEXTSASL at kafka.utils.CoreUtils$.isSaslProtocol(CoreUtils.scala:282) at kafka.consumer.SimpleConsumer.<init>(SimpleConsumer.scala:46) at kafka.javaapi.consumer.Si..
Attaching a picture.
Can anybody help me identify the issue? Is it related to Kerberos and SSL on Kafka? Thanks
Created 08-26-2016 06:51 PM
@Geetha Anne can you post your topology pom.xml and the kafka dependency. Are you sure you are using HDP kafka dependencies in your topology?
Created 08-26-2016 06:51 PM
@Geetha Anne can you post your topology pom.xml and the kafka dependency. Are you sure you are using HDP kafka dependencies in your topology?
Created 08-26-2016 08:36 PM
Created 08-26-2016 09:32 PM
HDP kafka has a patch for old client api (consumer, producer) to work with kerberorized kafka cluster. So you need to make sure the dependencies you set are coming from the hortonworks maven repo
<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka_2.10</artifactId> <version>0.8.2.0</version>
</dependency>
The above is from Apache. You can use this http://repo.hortonworks.com/content/groups/public/org/apache/kafka/kafka_2.10/0.9.0.2.4.2.8-3/ instead of the above. Add repo.hortonworks.com as one of the maven repo and use the version 0.9.0.2.4.2.8-3 instead of 0.8.2.0 like above.