Tag Archives: ClassNotFoundException: org.apache.storm.kafka.spout.KafkaSpoutConfig

[Solved] ClassNotFoundException: org.apache.storm.kafka.spout.KafkaSpoutConfig

When processing Kafka data with storm, the following errors are reported:

java.lang.NoClassDefFoundError: org.apache.storm.kafka.spout.KafkaSpout

or

ClassNotFoundException: org.apache.storm.kafka.spout.KafkaSpoutConfig

Solution:

Remove the <scope>provided</scope> line in pom.xml, refresh maven, and run again.