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.
Similar Posts:
- [Solved] Mybatis Codes Error: java.lang.ClassNotFoundException: Cannot find class: com.mysql.jdbc.Driver
- Kafka official kafka-server-start.sh cannot close Kafka process solution
- No Kafka server to stop error handling of Kafka
- [Solved] Spring Boot Error: Failed to instantiate SLF4J LoggerFactory Reported exception:
- [Solved] Kafka 0.8.2.2 Producer:java.net.ConnectException: Connection timed out: no further information
- Flume + HDFS startup error [Four Errors & How to Solve]
- How to Solve Struts2 Error: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
- Kafka creates topic error: org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 1 larger than available brokers: 0.
- Unable to instantiate application
- [How to Solve] Exception starting filter struts2