Re: Resolving dependencies when using sbt

2015-09-14 Thread Stephan Ewen
Answering to our other mail: I think getting from import statements to dependencies is not straightworward easy. Usually if you add flink-core and flink-java or flink-scala, plus maybe flink-streaming-core you have what you need to program (transitive libraries will be resolved by Maven / sbt) an

Re: Resolving dependencies when using sbt

2015-09-14 Thread Daniel Blazevski
BTW, I previously had an already built version of Flink, am now building from scratch so that I can use an IDE -- Got Scala 2.10.5, and building Flink from source will naturally make the whole process of getting the dependencies right more straight-forward. Decided will need to do this eventually

Re: Resolving dependencies when using sbt

2015-09-14 Thread Daniel Blazevski
Thanks for the feedback. I have another question about building using sbt: how can one go from import statements to figuring out library dependencies? Would be nice to write small programs w/o an IDE and be able to go from the import statements to appending the library dependency list in a .sbt

Re: Resolving dependencies when using sbt

2015-09-14 Thread Aljoscha Krettek
Hi, Giancarlo is correct about the Scala version. The provided Flink libraries should only work with 2.10. I'm actually wondering why it seems to be working for you with 2.9.x. Cheers, Aljoscha On Mon, 14 Sep 2015 at 11:07 Giancarlo Pagano wrote: > If you want to use Flink 0.10-SNAPSHOT you can

Re: Resolving dependencies when using sbt

2015-09-14 Thread Giancarlo Pagano
If you want to use Flink 0.10-SNAPSHOT you can add the Apache Snapshot repository, in sbt: resolvers += "apache-snapshot" at "https://repository.apache.org/content/repositories/snapshots/“ It would probably be better to use

Re: Resolving dependencies when using sbt

2015-09-13 Thread Daniel Blazevski
nevermind on this issue, based on this (a whole different issue with Kafka): https://issues.apache.org/jira/browse/FLINK-2408 I saw the following (instead of 0.10-SNAPSHOT in build.sbt), and the error message went away: val flinkVersion = "0.9.0" libraryDependencies ++= Seq("org.apache.flink" % "

Resolving dependencies when using sbt

2015-09-13 Thread Daniel Blazevski
Hello, Earlier today, I was able to get a Flink cluster running, and successfully ran the wordcount jar file in the examples folder. I then tried to compile the WordCount example using sbt found here: https://ci.apache.org/projects/flink/flink-docs-master/quickstart/scala_api_quickstart.html#alte