flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbala...@apache.org
Subject [1/3] flink git commit: [FLINK-2080] Document how to use Flink with sbt
Date Mon, 08 Jun 2015 09:11:25 GMT
Repository: flink
Updated Branches:
  refs/heads/master 16ab1fd97 -> 3e9af8202


[FLINK-2080] Document how to use Flink with sbt

Closes #787


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/3e9af820
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/3e9af820
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/3e9af820

Branch: refs/heads/master
Commit: 3e9af8202e225173d506ce0ac7b37a155003fcfd
Parents: 80b1d56
Author: Christian Wuerz <christian.wuerz@gmail.com>
Authored: Thu Jun 4 20:05:46 2015 +0200
Committer: mbalassi <mbalassi@apache.org>
Committed: Mon Jun 8 11:10:08 2015 +0200

----------------------------------------------------------------------
 docs/quickstart/scala_api_quickstart.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/3e9af820/docs/quickstart/scala_api_quickstart.md
----------------------------------------------------------------------
diff --git a/docs/quickstart/scala_api_quickstart.md b/docs/quickstart/scala_api_quickstart.md
index 26a4bc5..7aaa36f 100644
--- a/docs/quickstart/scala_api_quickstart.md
+++ b/docs/quickstart/scala_api_quickstart.md
@@ -23,6 +23,7 @@ under the License.
 * This will be replaced by the TOC
 {:toc}
 
+
 Start working on your Flink Scala program in a few simple steps.
 
 ## Requirements
@@ -134,3 +135,19 @@ object WordCountJob {
 For a complete overview over our API, have a look at the [Programming Guide]({{ site.baseurl
}}/apis/programming_guide.html) and [further example programs]({{ site.baseurl }}/apis/examples.html).
If you have any trouble, ask on our [Mailing List](http://mail-archives.apache.org/mod_mbox/flink-dev/).
We are happy to provide help.
 
 
+
+## Alternative Build Tools: SBT
+ 
+To build and run applications with SBT instead of Maven is pretty straight forward. After
creating the standard sbt [directory layout](http://www.scala-sbt.org/0.13/tutorial/Directories.html)
it's enough to add the Flink dependencies to the `build.sbt` file:
+
+~~~scala
+libraryDependencies ++= Seq("org.apache.flink" % "flink-scala" % "{{site.version}}", "org.apache.flink"
% "flink-clients" % "{{site.version}}") 
+~~~
+
+Now the application can be executed by `sbt run`. By default SBT runs an application in the
same JVM itself is running in. This can lead to lass loading issues with Flink. To avoid these,
append the following line to `build.sbt`:
+
+~~~scala
+fork in run := true 
+~~~
+
+


Mime
View raw message