Skip to content

Commit

Permalink
Set version of poms to 0.7-incubating-SNAPSHOT ; 0.6-incubating relea…
Browse files Browse the repository at this point in the history
…se tasks:

- update _config.yaml of integrated documentation
- quick check on the quickstarts / build instructions to match the latest release
- quickstart.sh scrips now point to the correct versions.
  • Loading branch information
rmetzger committed Aug 23, 2014
1 parent 0bb3af7 commit d7609a9
Show file tree
Hide file tree
Showing 39 changed files with 65 additions and 116 deletions.
8 changes: 5 additions & 3 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
# {{ site.CONFIG_KEY }}
#------------------------------------------------------------------------------

FLINK_VERSION_STABLE: 0.6-incubating-SNAPSHOT # this variable can point to a SNAPSHOT version in the git source.
FLINK_VERSION_HADOOP_2_STABLE: 0.6-hadoop2-incubating-SNAPSHOT
FLINK_VERSION_STABLE: 0.6-incubating # this variable can point to a SNAPSHOT version in the git source.
FLINK_VERSION_HADOOP_2_STABLE: 0.6-hadoop2-incubating
FLINK_VERSION_SHORT: 0.6
FLINK_ISSUES_URL: https://issues.apache.org/jira/browse/FLINK
FLINK_GITHUB_URL: https://github.com/apache/incubator-flink

FLINK_DOWNLOAD_URL_HADOOP_1_STABLE: https://github.com/stratosphere/stratosphere/releases/download/release-0.5.2/stratosphere-0.5.2-bin.tgz
FLINK_DOWNLOAD_URL_HADOOP_1_STABLE: http:https://www.apache.org/dyn/closer.cgi/incubator/flink/flink-0.6-incubating-bin-hadoop1.tgz
FLINK_DOWNLOAD_URL_HADOOP_2_STABLE: http:https://www.apache.org/dyn/closer.cgi/incubator/flink/flink-0.6-incubating-bin-hadoop2.tgz
FLINK_DOWNLOAD_URL_YARN_STABLE: http:https://www.apache.org/dyn/closer.cgi/incubator/flink/flink-0.6-incubating-bin-hadoop2-yarn.tgz

#------------------------------------------------------------------------------
# BUILD CONFIG
Expand Down
31 changes: 5 additions & 26 deletions docs/run_example_quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,13 @@
title: "Quick Start: Run K-Means Example"
---

<div class="panel panel-warning">
<div class="panel-heading">
Note
</div>
<div class="panel-body">
This page is using both names "Flink" and "Stratosphere" to refer to the system. We recently changed the name to Apache Flink, but there is no stable release available for it yet, therefore the example here refers to the latest stable Stratosphere release (0.5.2).
</div>
</div>


This guide will demonstrate Flink's features by example. You will see how you can leverage Flink's Iteration-feature to find clusters in a dataset using [K-Means clustering](http:https://en.wikipedia.org/wiki/K-means_clustering).
On the way, you will see the compiler, the status interface and the result of the algorithm.


# Generate Input Data
Flink contains a data generator for K-Means.
<!--
REACTIVATE WHEN WE HAVE A FIRST APACHE FLINK RELEASE

# Download Flink
wget {{ site.FLINK_DOWNLOAD_URL_HADOOP_1_STABLE }}
Expand All @@ -31,17 +20,7 @@ Flink contains a data generator for K-Means.
java -cp ../examples/flink-java-examples-{{ site.FLINK_VERSION_STABLE }}-KMeans.jar org.apache.flink.example.java.clustering.util.KMeansDataGenerator 500 10 0.08
cp /tmp/points .
cp /tmp/centers .
-->
# Download Flink (still called Stratosphere in the 0.5.2 release)
wget https://github.com/stratosphere/stratosphere/releases/download/release-0.5.2/stratosphere-0.5.2-bin.tgz
tar xzf stratosphere-*.tgz
cd stratosphere
mkdir kmeans
cd kmeans
# Run data generator
java -cp ../examples/stratosphere-java-examples-0.5.2-KMeans.jar eu.stratosphere.example.java.clustering.util.KMeansDataGenerator 500 10 0.08
cp /tmp/points .
cp /tmp/centers .


The generator has the following arguments:

Expand Down Expand Up @@ -74,10 +53,10 @@ The following overview presents the impact of the different standard deviations
We are using the generated input data to run the clustering using a Flink job.

# go to the Flink-root directory
cd stratosphere
# start Stratosphere/Flink (use ./bin/start-cluster.sh if you're on a cluster)
cd flink
# start Flink (use ./bin/start-cluster.sh if you're on a cluster)
./bin/start-local.sh
# Start Stratosphere/Flink web client
# Start Flink web client
./bin/start-webclient.sh

# Review Flink Compiler
Expand All @@ -91,7 +70,7 @@ The Flink webclient allows to submit Flink programs using a graphical user inter
1. <a href="http:https://localhost:8080/launch.html">Open webclient on localhost:8080</a> <br>
2. Upload the file.
{% highlight bash %}
examples/stratosphere-java-examples-0.5-SNAPSHOT-KMeans.jar
examples/flink-java-examples-0.6-incubating-KMeans.jar
{% endhighlight %} </br>
3. Select it in the left box to see how the operators in the plan are connected to each other. <br>
4. Enter the arguments in the lower left box:
Expand Down
2 changes: 1 addition & 1 deletion docs/yarn_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Start YARN session with 4 Task Managers (each with 4 GB of Heapspace):

```bash
wget {{ site.FLINK_DOWNLOAD_URL_YARN_STABLE }}
tar xvzf flink-dist-{{ site.FLINK_VERSION_STABLE }}-yarn.tar.gz
tar xvzf flink-{{ site.FLINK_VERSION_STABLE }}-bin-hadoop2-yarn.tgz
cd flink-yarn-{{ site.FLINK_VERSION_STABLE }}/
./bin/yarn-session.sh -n 4 -jm 1024 -tm 4096
```
Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-avro/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
<parent>
<artifactId>flink-addons</artifactId>
<groupId>org.apache.flink</groupId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-hadoop-compatibility/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
<parent>
<artifactId>flink-addons</artifactId>
<groupId>org.apache.flink</groupId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-hbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<artifactId>flink-addons</artifactId>
<groupId>org.apache.flink</groupId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
<parent>
<artifactId>flink-addons</artifactId>
<groupId>org.apache.flink</groupId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-spargel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<artifactId>flink-addons</artifactId>
<groupId>org.apache.flink</groupId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-streaming/flink-streaming-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-streaming-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-streaming/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-addons</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/flink-yarn/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-addons</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-clients/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-examples/flink-java-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-examples</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-examples/flink-scala-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-examples</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-java8-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion flink-quickstart/flink-quickstart-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-quickstart</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-java</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion flink-quickstart/flink-quickstart-scala/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-quickstart</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ under the License.
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-scala</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-clients</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion flink-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.flink</groupId>
<artifactId>flink-parent</artifactId>
<version>0.6-incubating-SNAPSHOT</version>
<version>0.7-incubating-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

Expand Down
11 changes: 1 addition & 10 deletions flink-quickstart/quickstart-SNAPSHOT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PACKAGE=quickstart
mvn archetype:generate \
-DarchetypeGroupId=org.apache.flink \
-DarchetypeArtifactId=flink-quickstart-java \
-DarchetypeVersion=0.6-incubating-SNAPSHOT \
-DarchetypeVersion=0.7-incubating-SNAPSHOT \
-DgroupId=org.apache.flink \
-DartifactId=$PACKAGE \
-Dversion=0.1 \
Expand All @@ -45,12 +45,3 @@ echo -e "\\t\\t mvn clean package"
echo -e "\\tYou will find the runnable jar in $PACKAGE/target"
echo -e "\\n\\n"


# Use this command if you want to specify the coordinates of your generated artifact
# in an interactive menu:
#
#mvn archetype:generate \
# -DarchetypeGroupId=org.apache.flink \
# -DarchetypeArtifactId=flink-quickstart-java \
# -DarchetypeVersion=0.6-SNAPSHOT \
# -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/
13 changes: 2 additions & 11 deletions flink-quickstart/quickstart-scala-SNAPSHOT.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ PACKAGE=quickstart
mvn archetype:generate \
-DarchetypeGroupId=org.apache.flink \
-DarchetypeArtifactId=flink-quickstart-scala \
-DarchetypeVersion=0.6-incubating-SNAPSHOT \
-DarchetypeVersion=0.7-incubating-SNAPSHOT \
-DgroupId=org.apache.flink \
-DartifactId=$PACKAGE \
-Dversion=0.1 \
-Dpackage=org.apache.flink.quickstart \
-Dpackage=org.apache.flink \
-DinteractiveMode=false \
-DarchetypeCatalog=https://repository.apache.org/content/repositories/snapshots/

Expand All @@ -45,12 +45,3 @@ echo -e "\\t\\t mvn clean package"
echo -e "\\tYou will find the runnable jar in $PACKAGE/target"
echo -e "\\n\\n"


# Use this command if you want to specify the coordinates of your generated artifact
# in an interactive menu:
#
#mvn archetype:generate \
# -DarchetypeGroupId=org.apache.flink \
# -DarchetypeArtifactId=quickstart-scala \
# -DarchetypeVersion=0.6-SNAPSHOT \
# -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/snapshots/
Loading

0 comments on commit d7609a9

Please sign in to comment.