Apache flink 在flink-streaming-scala_2.11模块中运行流字计数时编译错误

Apache flink 在flink-streaming-scala_2.11模块中运行流字计数时编译错误,apache-flink,Apache Flink,我使用Intellij Idea从git克隆Flink项目 我能够在模块flink-examples-batch_2.11中成功运行批处理计数org.apache.flink.examples.scala.wordcount.wordcount 但是,当我尝试在模块flink-examples-streaming_2.11中运行stream word countorg.apache.flink.streaming.scala.examples.wordcount.wordcount时,出现了几个

我使用Intellij Idea从git克隆Flink项目

我能够在模块
flink-examples-batch_2.11
中成功运行批处理计数
org.apache.flink.examples.scala.wordcount.wordcount

但是,当我尝试在模块
flink-examples-streaming_2.11
中运行stream word count
org.apache.flink.streaming.scala.examples.wordcount.wordcount
时,出现了几个编译错误:

D:\projects\BigData_Projects\flink\flink-streaming-scala\src\test\scala\org\apache\flink\streaming\api\scala\SideOutputITCase.scala
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]
D:\projects\BigData_Projects\flink\flink-streaming-scala\src\test\scala\org\apache\flink\streaming\api\scala\StreamingScalaAPICompletenessTest.scala
Error:(22, 35) object completeness is not a member of package org.apache.flink.api.scala
import org.apache.flink.api.scala.completeness.ScalaAPICompletenessTestBase
Error:(32, 49) not found: type ScalaAPICompletenessTestBase
class StreamingScalaAPICompletenessTest extends ScalaAPICompletenessTestBase {
Error:(101, 5) not found: value checkMethods
    checkMethods("DataStream", "DataStream", classOf[JavaStream[_]], classOf[DataStream[_]])
Error:(103, 5) not found: value checkMethods
    checkMethods(
Error:(108, 5) not found: value checkMethods
    checkMethods(
Error:(113, 5) not found: value checkMethods
    checkMethods(
Error:(118, 5) not found: value checkMethods
    checkMethods(
Error:(123, 5) not found: value checkMethods
    checkMethods(
Error:(128, 5) not found: value checkMethods
    checkMethods(
Error:(133, 5) not found: value checkMethods
    checkMethods(
Error:(138, 5) not found: value checkMethods
    checkMethods(
Error:(143, 5) not found: value checkMethods
    checkMethods(

我不确定那里出了什么问题,有人能帮忙吗?谢谢

您能否澄清您使用的是哪个版本的Flink,以及您是如何尝试运行流媒体字数统计示例的?谢谢@DavidAnderson的回复。I git从github(主分支)克隆最新代码,并使用intellijidea作为Maven项目打开它,然后直接在intellijidea中运行它。我能够运行批处理模式字数计数:
我能够成功运行模块flink-examples-batch_2.11中的批处理工作计数org.apache.flink.examples.scala.wordcount.wordcount。