I have installed Flink, Scala and sbt Flink Version: 1.9.1 Scala Version: 2.10.6 Sbt Version: 1.3.7
I made relevant changes in build.sbt. Compile command is failing Here is the relevant information. Any information is greatly appreciated
**Versions Information
[osboxes@osboxes local]$ scala -version
Scala code runner version 2.10.6 -- Copyright 2002-2013, LAMP/EPFL
[osboxes@osboxes local]$ flink --version
Version: 1.9.1, Commit ID: 4d56de8
[osboxes@osboxes readcsvfile]$ sbt -version
sbt version in this project: 1.3.7
sbt script version: 1.3.7
** build.sbt changes
val flinkVersion = "1.9.1"
val flinkDependencies = Seq(
"org.apache.flink" %% "flink-scala" % flinkVersion % "provided",
"org.apache.flink" %% "flink-streaming-scala" % flinkVersion % "provided")
** Compile Errors
sbt:readCsvfile> compile
[info] Updating
[info] Resolved dependencies
[warn]
[warn] Note: Unresolved dependencies path:
[error] stack trace is suppressed; run last update for the full output
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.apache.flink:flink-streaming-scala_2.13:1.9.1
[error] Not found
[error] Not found
[error] not found: /home/osboxes/.ivy2/local/org.apache.flink/flink-streaming-scala_2.13/1.9.1/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/apache/flink/flink-streaming-scala_2.13/1.9.1/flink-streaming-scala_2.13-1.9.1.pom
[error] Error downloading org.apache.flink:flink-scala_2.13:1.9.1
[error] Not found
[error] Not found
[error] not found: /home/osboxes/.ivy2/local/org.apache.flink/flink-scala_2.13/1.9.1/ivys/ivy.xml
[error] not found: https://repo1.maven.org/maven2/org/apache/flink/flink-scala_2.13/1.9.1/flink-scala_2.13-1.9.1.pom
[error] Total time: 4 s, completed Jan 30, 2020 3:59:12 PM
sbt:readCsvfile>
flink-scala_2.13:1.9.1
the 2.13 in there is the Scala version and 1.9.1 is the flink version. It should be pullingflink-scala_2.12:1.9.1
– sinanspd2.10
is too old and2.13
is too new, try with2.12
as @sinanspd suggested. Also, you have to understand that you do not have to install everything in local, Scala works different than Python. SBT creates like a virtual env for each project, you there configure everything you need, sbt version, Scala version, dependencies and their versions. The only thing that you have to install in your machine is the JDK. – Luis Miguel Mejía Suárez