Re: Iterate several kafka topics using the kafka connector

2016-06-23 Thread Sendoh
Thank you. It totally works as what we want which unions data streams. Best, Sendoh -- View this message in context: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Iterate-several-kafka-topics-using-the-kafka-connector-tp7673p7680.html Sent from the Apache Flink User Mail

Re: Iterate several kafka topics using the kafka connector

2016-06-23 Thread Till Rohrmann
It is possible to instantiate the FlinkKafkaConsumer with multiple topics [1]. Simply pass a list of topic names instead of a the name of a single topic. streams.add(env.addSource(new FlinkKafkaConsumer09<>(Arrays.asList("foo", "bar", "foobar"), new JSONSchema(), properties));