val topics = new util.LinkedList[String] topics.add("test1") topics.add("test2")
// val stream = env.addSource(new FlinkKafkaConsumer[String]("test", new SimpleStringSchema(), properties)) val stream = env.addSource(newFlinkKafkaConsumer[String](topics, newSimpleStringSchema(), properties))
stream.print()
// 启动executor,执行任务 env.execute("Socket stream word count") }