Open Yitian-Zhang opened 5 years ago
If you want to use Apache Storm KafkaSpout with Heron, you can use
`
<artifactId>storm-kafka-client</artifactId>
<version>1.2.2</version>
</dependency>
`
But, there's a source file from Apache Storm is missing in the Heron Storm compatibility library which is required by the dependency above. You will need to manually copy org.apache.storm.utils.Time
class from Apache Storm source tree into your project. We was using Heron 0.17.8 with storm-kafka-client 1.2.2 successfully, but recently rewrote a new one for Heron due to performance issue we found in storm-kafka-client.
When I run a topology of Storm with KafkaSpout in Heron, the following exception occurs:
The codes of the topology as follows:
The location of the NPE is 80 lines of the open method in KafkaSpout class:
The dependencies of the pom.xml as follows:
I have tried to change storm-kafka to heron-kafka and added heron-api, what's more, removed the storm-kafka. But there is still the same NPE problem. I don't know what caused this problem and how to fix it. Any help is grateful.