You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by rm...@apache.org on 2015/04/13 20:50:43 UTC

flink git commit: [docs][yarn] Use SNAPSHOT flink version in SNAPSHOT documentation

Repository: flink
Updated Branches:
  refs/heads/master 69a400fad -> 322782c84


[docs][yarn] Use SNAPSHOT flink version in SNAPSHOT documentation


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

Branch: refs/heads/master
Commit: 322782c8442fa6affb65033d0e544261566ade12
Parents: 69a400f
Author: Robert Metzger <rm...@apache.org>
Authored: Mon Apr 13 20:50:34 2015 +0200
Committer: Robert Metzger <rm...@apache.org>
Committed: Mon Apr 13 20:50:34 2015 +0200

----------------------------------------------------------------------
 docs/_config.yml   |  3 +++
 docs/yarn_setup.md | 24 ++++++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/322782c8/docs/_config.yml
----------------------------------------------------------------------
diff --git a/docs/_config.yml b/docs/_config.yml
index 364d1f3..fe0b62d 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -25,6 +25,9 @@
 FLINK_VERSION_THIS_HADOOP1: "0.9-hadoop1-SNAPSHOT"
 FLINK_VERSION_THIS_HADOOP2: "0.9-SNAPSHOT"
 FLINK_VERSION_THIS_SHORT: "0.9"
+FLINK_WGET_URL_YARN_THIS: http://stratosphere-bin.s3-website-us-east-1.amazonaws.com/flink-0.9-SNAPSHOT-bin-hadoop2.tgz
+
+
 
 FLINK_VERSION_HADOOP1_STABLE: "0.8.1-hadoop1" # this variable can point to a SNAPSHOT version in the git source.
 FLINK_VERSION_SHORT: "0.8.1"

http://git-wip-us.apache.org/repos/asf/flink/blob/322782c8/docs/yarn_setup.md
----------------------------------------------------------------------
diff --git a/docs/yarn_setup.md b/docs/yarn_setup.md
index 4da8a05..7daf573 100644
--- a/docs/yarn_setup.md
+++ b/docs/yarn_setup.md
@@ -28,9 +28,9 @@ under the License.
 Start a YARN session with 4 Task Managers (each with 4 GB of Heapspace):
 
 ~~~bash
-wget {{ site.FLINK_WGET_URL_YARN_STABLE }}
-tar xvzf flink-{{ site.FLINK_VERSION_SHORT }}-bin-hadoop2.tgz
-cd flink-{{ site.FLINK_VERSION_SHORT }}/
+wget {{ site.FLINK_WGET_URL_YARN_THIS }}
+tar xvzf flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}-bin-hadoop2.tgz
+cd flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}/
 ./bin/yarn-session.sh -n 4 -jm 1024 -tm 4096
 ~~~
 
@@ -41,10 +41,10 @@ Once the session has been started, you can submit jobs to the cluster using the
 ## Quickstart: Run a Flink job on YARN
 
 ~~~bash
-wget {{ site.FLINK_WGET_URL_YARN_STABLE }}
-tar xvzf flink-{{ site.FLINK_VERSION_SHORT }}-bin-hadoop2.tgz
-cd flink-{{ site.FLINK_VERSION_SHORT }}/
-./bin/flink -m yarn-cluster -yn 4 -yjm 1024 -ytm 4096 ./examples/flink-java-examples-{{ site.FLINK_VERSION_SHORT }}-WordCount.jar
+wget {{ site.FLINK_WGET_URL_YARN_THIS }}
+tar xvzf flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}-bin-hadoop2.tgz
+cd flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}/
+./bin/flink -m yarn-cluster -yn 4 -yjm 1024 -ytm 4096 ./examples/flink-java-examples-{{ site.FLINK_VERSION_THIS_HADOOP2 }}-WordCount.jar
 ~~~
 
 ## Apache Flink on Hadoop YARN using a YARN Session
@@ -71,11 +71,11 @@ Download the YARN tgz package on the [download page]({{site.baseurl}}/downloads.
 Extract the package using:
 
 ~~~bash
-tar xvzf flink-{{ site.FLINK_VERSION_SHORT }}-bin-hadoop2.tgz
-cd flink-{{site.FLINK_VERSION_SHORT }}/
+tar xvzf flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}-bin-hadoop2.tgz
+cd flink-{{site.FLINK_VERSION_THIS_HADOOP2 }}/
 ~~~
 
-If you want to build the YARN .tgz file from sources, follow the [build instructions](building.html). You can find the result of the build in `flink-dist/target/flink-{{ site.FLINK_VERSION_SHORT }}-bin/flink-{{ site.FLINK_VERSION_SHORT }}/` (*Note: The version might be different for you* ).
+If you want to build the YARN .tgz file from sources, follow the [build instructions](building.html). You can find the result of the build in `flink-dist/target/flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}-bin/flink-{{ site.FLINK_VERSION_THIS_HADOOP2 }}/` (*Note: The version might be different for you* ).
 
 
 #### Start a Session
@@ -172,7 +172,7 @@ Use the *run* action to submit a job to YARN. The client is able to determine th
 ~~~bash
 wget -O apache-license-v2.txt http://www.apache.org/licenses/LICENSE-2.0.txt
 hadoop fs -copyFromLocal LICENSE-2.0.txt hdfs:/// ...
-./bin/flink run ./examples/flink-java-examples-{{site.FLINK_VERSION_SHORT }}-WordCount.jar \
+./bin/flink run ./examples/flink-java-examples-{{site.FLINK_VERSION_THIS_HADOOP2 }}-WordCount.jar \
         hdfs:///..../apache-license-v2.txt hdfs:///.../wordcount-result.txt
 ~~~
 
@@ -198,7 +198,7 @@ Please note that the client then expects the `-yn` value to be set (number of Ta
 ***Example:***
 
 ~~~bash
-./bin/flink run -m yarn-cluster -yn 2 ./examples/flink-java-examples-{{site.FLINK_VERSION_STABLE }}-WordCount.jar 
+./bin/flink run -m yarn-cluster -yn 2 ./examples/flink-java-examples-{{site.FLINK_VERSION_THIS_HADOOP2 }}-WordCount.jar 
 ~~~
 
 The command line options of the YARN session are also available with the `./bin/flink` tool. They are prefixed with a `y` or `yarn` (for the long argument options).