【发布时间】:2019-03-07 14:08:10
【问题描述】:
我从github上git clone flink代码,用Intellij Idea打开,我在IJ和代码里都没有做任何配置(我已经安装了IJ scala插件和scala sdk),我直接去运行Intellij Idea中的以下两个示例
我能够成功运行批处理模式字数统计示例(代码是类org.apache.flink.examples.scala.wordcount.WordCount in flink-examples-batch_2.11 模块)。
但是当我尝试运行流式字数示例时(代码是类org.apache.flink.streaming.scala.examples.wordcount.WordCount in flink-examples-streaming_2.11 模块),我得到了很多编译错误:
Error:(30, 30) object streaming is not a member of package org.apache.flink.test
import org.apache.flink.test.streaming.runtime.util.TestListResultSink
Error:(46, 36) not found: type TestListResultSink
val sideOutputResultSink = new TestListResultSink[String]
Error:(47, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[Int]
Error:(82, 36) not found: type TestListResultSink
val sideOutputResultSink = new TestListResultSink[String]
Error:(83, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[Int]
Error:(119, 36) not found: type TestListResultSink
val sideOutputResultSink = new TestListResultSink[String]
Error:(120, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[Int]
Error:(152, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[String]
Error:(153, 30) not found: type TestListResultSink
val lateResultSink = new TestListResultSink[(String, Int)]
Error:(196, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[String]
Error:(197, 30) not found: type TestListResultSink
val lateResultSink = new TestListResultSink[(String, Int)]
Error:(242, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[String]
Error:(243, 36) not found: type TestListResultSink
val sideOutputResultSink = new TestListResultSink[String]
Error:(289, 26) not found: type TestListResultSink
val resultSink = new TestListResultSink[String]
Error:(290, 36) not found: type TestListResultSink
val sideOutputResultSink = new TestListResultSink[String]
【问题讨论】:
-
有人可以帮忙看看吗?谢谢
标签: apache-flink