2015-05-04 155 views
1

我想T使用充當卡夫卡的消費風暴壺嘴我的數據,從卡夫卡的主題發送到HBase的和將數據發送到HBase的我對着例外風暴拓撲....風暴拓撲生成異常

java.lang.RuntimeException: java.lang.RuntimeException: No leader found for partition 0 at 
storm.kafka.DynamicBrokersReader.getBrokerInfo(DynamicBrokersReader.java:81) 
at storm.kafka.trident.ZkBrokerReader.<init>(ZkBrokerReader.java:42) at storm.kafka.KafkaUtils.makeBrokerReader(KafkaUtils.java:57) 
at storm.kafka.KafkaSpout.open(KafkaSpout.java:87) at backtype.storm.daemon.executor$fn__5629$fn__5644.invoke(executor.clj:542) 
at backtype.storm.util$async_loop$fn__452.invoke(util.clj:463) 
at clojure.lang.AFn.run(AFn.java:24) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.RuntimeException: No leader found for partition 0 
at storm.kafka.DynamicBrokersReader.getLeaderFor(DynamicBrokersReader.java:120) 
at storm.kafka.DynamicBrokersReader.getBrokerInfo(DynamicBrokersReader.java:68) ... 7 more 

回答

1

您的卡芙卡主題有些問題。第一行:

No leader found for partition 0 

是這裏的關鍵。

您將不得不挖掘卡夫卡並修復該主題,以便它擁有充當領導者的經紀人。