I'm working on my first Apache Flink wordcount example. My setup is Scala IDE(Eclipse) 4.3.0, Scala 2.10.4, SBT version 0.13.8.
IDE throws error "can't expand macros compiled by previous versions of Scala" for the call env.fromElements
val env = ExecutionEnvironment.getExecutionEnvironment
val text = env.fromElements("first line", "second line")
I able to compile and generate assembly jar with SBT. I'm even able to run/debug the program in IDE. Its just that the error in IDE is annoying and it prevents IDE feature like auto complete, etc. I have a felling its some setting that needs to be tweaked. Can't figure out which one. Any hints?
My build.sbt
import AssemblyKeys._
name := "Flink Test"
version := "0.1.0"
organization := "com.NNN"
scalaVersion := "2.10.4"
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
libraryDependencies ++= Seq(
"org.apache.flink" % "flink-scala" % "0.10.1" % "provided",
"org.apache.flink" % "flink-clients" % "0.10.1" % "provided"
)
resolvers ++= Seq(
"Akka" at "http://akka.io/repository/",
"Sonatype" at "https://oss.sonatype.org/"
)
assemblySettings
jarName in assembly := "flink-test.jar"
fork in run := true
assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)