我用Intellij Idea从git克隆了Flink项目。
我能够在模块org.apache.flink.examples.scala.wordcount.WordCount
中成功运行批处理工作计数flink-examples-batch_2.11
。
但是当我尝试在模块org.apache.flink.streaming.scala.examples.wordcount.WordCount
中运行流字计数flink-examples-streaming_2.11
时,会发生一些编译错误:
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(
我不确定那里出了什么问题,可以帮忙一下吗?谢谢