I am using flink 1.3, I have defined two stream sources that will emit out same events to be processed by subsequent operators(my defined process operator and sink operator)
But it looks that in the source-process-pink pipeline, I could only specify one source, I would ask how to specify two or more sources and do the same process and sink
object FlinkApplication {
def main(args: Array[String]): Unit = {
val env = StreamExecutionEnvironment.getExecutionEnvironment
env.setStreamTimeCharacteristic(TimeCharacteristic.ProcessingTime)
env.addSource(new MySource1()) //How to MySource2 here?
.setParallelism(1)
.name("source1")
.process(new MyProcess())
.setParallelism(4)
.addSink(new MySink())
.setParallelism(2)
env.execute("FlinkApplication")
}
}