Reputation: 11
Welcome any idea after read the problem statement.
Background: Publish message using Apache Kafka: Kafka broker is running. Kafka producers are the application that create the messages and publish them to the Kafka broker for further consumption. Therefore, in order for the Kafka consumer to consume data, Kafka topic need to create before Kafka producer and consumer starting publish message and consume message
Kafka tested successful as Kafka consumer able to consume data from Kafka topic and display result.
Before startup Storm topology, stop the Kafka consumer so that Storm Spout able to working on source of data streams from kafka topics.
Real time processing of the data using Apache Storm: With Storm topology created, Storm Spout working on the source of data streams, which mean Spout will read data from kafka topics. At another end, Spout passes streams of data to Storm Bolt, which processes and create the data into HDFS (file format) and HBase (db format) for storage purpose.
Zookeeper is the coordination service for distribution application. From the zookeeper client, we always can see the /brokers/topics/truckevent, but the last znode always missing when running storm. I managed to solve this issue once if we create the znode manually. However, same method is no longer work for subsequent testing.
I had manually create the Hbase table as for data format at HBase. However, retrieving the connection to HBase still failed.
Any one can help on this?
Upvotes: 1
Views: 532
Reputation: 1469
Suggestion for problem 1:
Stop storm topology. Delete the znodes related to topics manually in the zookeeper where storm is running and restart storm topology. This will create new znodes.
Suggestion for problem 2:
First check using java code if you are able to connect to Hbase. Then test that same logic in Storm topology.
Answer for problem 3:
As per your logs user=storm but the directory in which you are writing is owned by hdfs. So change the user permission of that directory and make storm as the user using chown command.
Upvotes: 1