Member since
07-08-2016
6
Posts
1
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1707 | 07-27-2016 10:29 AM |
01-30-2017
06:27 AM
@Paul Hargis
any pointers on how to set "auto.offset.reset" in storm ? @Artem Ervits if I use "kafka.api.OffsetRequest.EarliestTime();" everytime I restart topology will it consume old data(I mean from beginning) ? My use case is this: My topology was down for over 2 weeks, but kafka has only 1 weeks data. so I am thinking that when I start the topology it will not find the offset. Should I use "kafka.api.OffsetRequest.EarliestTime();" ? update: tried restarting the topoloy I am using OpaqueTridentKafkaSpout, getting storm.kafka.UpdateOffsetException (using storm 0.9.4) checked KafkaConfig it has public boolean useStartOffsetTimeIfOffsetOutOfRange = true; public long startOffsetTime = kafka.api.OffsetRequest.EarliestTime(); So what I am not getting is that why it is not setting offset to earliest and failing with UpdateOffsetException instead 😞 Could you guys please help ?
... View more
11-03-2016
11:55 AM
@Sanjeev Verma You can use Config conf = new Config(); conf.put(key, val); conf.put(key1, val1); e.g redis config, etc. and then you can use this in prepare method of bolts(in case of trident in functions/ filters, etc). Hope this helps.
... View more
07-27-2016
11:25 AM
@Narendra Bidari for trident : It maintains offset in zookeeper folder [stream-name] So I think stream name must be acting as consumer group id.
... View more
07-27-2016
10:29 AM
1 Kudo
Hey folks, Turned out that I was using same name for TridentTopology#newStream in both topologies. And it creates dir by this name in zk. Thanks for folks on apache storm user group
... View more
07-27-2016
06:18 AM
Hey, @ggolani Thanks for the reply. TridentKafkaConfig spoutConf = new TridentKafkaConfig(zk, "test-topic",UUID.randomUUID().toString()) We have already tried this and seems not be working. The javadoc says that the 3rd param is clientId. Is this same as group id ?
... View more
07-26-2016
11:03 AM
So I want multiple storm topologies to read from the same kafka topic. So suppose topic contains: A B C (data) I want both the topologies to get A,B,C But currently what is happening is messaged are getting distributed.(eg. topology 1 is getting A and other topology is getting B and C) How do I achieve this is trident. I am using OpaqueTridentKafkaSpout. I think what needs to be done is both topologies need to specify different consumer group ids. But could not find how to specify them in trident(TridentKafkaConfig)
... View more
Labels:
- Labels:
-
Apache Kafka
-
Apache Storm