You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by pravin kumar <pk...@gmail.com> on 2018/02/23 05:09:44 UTC
ProcessorTopology
Can we give the ouput of one processorTopology as the input to another
processorTopology.
if it is possible,how can we do it.
Can anyone provide it with any example
Re: ProcessorTopology
Posted by Jacek Laskowski <ja...@japila.pl>.
Hi,
Bill gave the perfect answer with a sink and a source as the connecting
point, but thought I'd add a note.
A topology is just a description of what "processing code" to execute when
the topology gets "materialized". In other words, it's a graph of nodes
where nodes are processing units. It would not make much sense to have a
topology to be an input of another. You use sinks and sources to connect
the "dots" as Kafka Streams is "just" a wrapper around Kafka Consumer and
Kafka Producer APIs.
Pozdrawiam,
Jacek Laskowski
----
https://about.me/JacekLaskowski
Mastering Spark SQL https://bit.ly/mastering-spark-sql
Spark Structured Streaming https://bit.ly/spark-structured-streaming
Mastering Kafka Streams https://bit.ly/mastering-kafka-streams
Follow me at https://twitter.com/jaceklaskowski
On Fri, Feb 23, 2018 at 6:09 AM, pravin kumar <pk...@gmail.com> wrote:
> Can we give the ouput of one processorTopology as the input to another
> processorTopology.
>
> if it is possible,how can we do it.
> Can anyone provide it with any example
>
Re: ProcessorTopology
Posted by Bill Bejeck <bi...@confluent.io>.
Hi Pravin,
Assume you have two topologies, A and B.
When building topology "A" you'll have a sink node writing to
"topic-A-results", and when building topology "B" you'll specify
"topic-A-results" as its source. You'll need to create these topics ahead
of time.
HTH
Bill
On Fri, Feb 23, 2018 at 12:09 AM, pravin kumar <pk...@gmail.com> wrote:
> Can we give the ouput of one processorTopology as the input to another
> processorTopology.
>
> if it is possible,how can we do it.
> Can anyone provide it with any example
>