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/“<https://repository.apache.org/content/repositories/snapshots/%E2%80%9C>
It would probably be better to use scala 2.10 rather than 2.9.

Giancarlo



On 13 Sep 2015, at 21:36, Daniel Blazevski 
<daniel.blazev...@gmail.com<mailto:daniel.blazev...@gmail.com>> wrote:

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" % 
"flink-scala" % flinkVersion, "org.apache.flink" % "flink-clients" % 
flinkVersion)

I'm doing more debugging now with the actual wordcount.scala file -- so I might 
ask another question about that here --  but thought I'd mention that that 
error message is no longer popping up.

Dan


On Sun, Sep 13, 2015 at 3:53 PM, Daniel Blazevski <daniel.blazev...@gmail.com> 
wrote:
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#alternative-build-tools-sbt

and could not resolve the sbt dependencies listed on that page.  More 
specifically, I did the following steps:
-- Created a directory with the WordCountJob.scala file copied and pasted from 
the above link
-- Created a build.sbt file (scala -version told me that I have 2.9.2 installed)
name := "sbt-test"

version := "1.0"

scalaVersion := "2.9.2"

libraryDependencies ++= Seq(
        "org.apache.flink" % "flink-scala" % "0.10-SNAPSHOT",
        "org.apache.flink" % "flink-clients" % "0.10-SNAPSHOT")

fork in run := true


I then ran
sbt
> compile
and got the error:
::::::::::::::::::::::::::::::::::::::::::::::
[warn]     ::          UNRESOLVED DEPENDENCIES         ::
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]     :: org.apache.flink#flink-scala;0.10-SNAPSHOT: not found
[warn]     :: org.apache.flink#flink-clients;0.10-SNAPSHOT: not found
[warn]     ::::::::::::::::::::::::::::::::::::::::::::::
[warn]

I then installed Fink on my local Mac laptop, and the same problem:  I was able 
to run the wordcount jar file, but had the same issue when trying to build 
using sbt

Thank you,
Dan



Reply via email to