[Flink] How to Converting DataStream to Dataset or Table?

2017-11-15 Thread Richard Xin
I have DataStream, is there a way to convert it DataSet or table so that I could sort it and persist it a file? Thanks a lot!

Re: how to get topic names in SinkFunction when using FlinkKafkaConsumer010 with multiple topics

2017-07-06 Thread Richard Xin
ingle default target topic, and in `KeyedSerializationSchema#getTargetTopic()` you can override the default topic with whatever is returned. The `getTargetTopic` method is invoked for each record. Cheers,Gordon On 6 July 2017 at 9:09:29 AM, Richard Xin (richardxin...@yahoo.com) wrote:

how to get topic names in SinkFunction when using FlinkKafkaConsumer010 with multiple topics

2017-07-05 Thread Richard Xin
when using FlinkKafkaConsumer010 to subscribing multiple topics as  List topics = Arrays.asList("test1","test2"); DataStream stream = env.addSource(new FlinkKafkaConsumer010<>(topics,  new SimpleStringSchema(), properties)); How do I get topic names in my SinkFunction? i.e. stream.addSink() Thanks,