You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Naga Vij <nv...@gmail.com> on 2014/08/28 07:05:35 UTC
adding bolt to TridentTopology
Hello,
How can I add a bolt to TridentTopology?
I realize the use of function on the stream (kafka stream in my case) ...
parsedStream.each(parsedStream.getOutputFields(), new SomeFunction(), new
Fields());
But I want to do subsequent processing by using bolts after the function.
How can I do that? Tried looking into the API, but appears I need some
help from others who might have tried it already.
Thanks in advance.
Naga
Re: adding bolt to TridentTopology
Posted by Parth Brahmbhatt <pb...@hortonworks.com>.
You can not use storm core bolts to process trident tuples. You could use core spouts in trident topologies but not bolts.
You will have to write your trident states that may do identical stuff as your bolt implementation in batch mode. You can refer to this doc to understand how you can write your own trident state
https://storm.incubator.apache.org/documentation/Trident-tutorial.html
Hope this helps.
Thanks
Parth
On Aug 27, 2014, at 10:05 PM, Naga Vij <nv...@gmail.com> wrote:
> Hello,
>
> How can I add a bolt to TridentTopology?
>
> I realize the use of function on the stream (kafka stream in my case) ...
>
> parsedStream.each(parsedStream.getOutputFields(), new SomeFunction(), new Fields());
>
> But I want to do subsequent processing by using bolts after the function.
>
> How can I do that? Tried looking into the API, but appears I need some help from others who might have tried it already.
>
> Thanks in advance.
>
> Naga
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.