Repository: flink
Updated Branches:
  refs/heads/master 0ab9d4665 -> f361e7d00


[docs] add documentation for FLink GCE setup using bdutil

This closes #361


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

Branch: refs/heads/master
Commit: f361e7d00e30748c4126f2ee9ff63d4016283ef6
Parents: 0ab9d46
Author: Max <m...@posteo.de>
Authored: Wed Feb 4 16:26:51 2015 +0100
Committer: Stephan Ewen <se...@apache.org>
Committed: Thu Feb 5 14:00:00 2015 +0100

----------------------------------------------------------------------
 docs/_includes/sidenav.html |  1 +
 docs/gce_setup.md           | 83 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/f361e7d0/docs/_includes/sidenav.html
----------------------------------------------------------------------
diff --git a/docs/_includes/sidenav.html b/docs/_includes/sidenav.html
index a308c18..6a73f8d 100644
--- a/docs/_includes/sidenav.html
+++ b/docs/_includes/sidenav.html
@@ -28,6 +28,7 @@ under the License.
   <li><div class="sidenav-item"><a href="local_setup.html">Local 
Setup</a></div></li>
   <li><div class="sidenav-item"><a href="building.html">Build 
Flink</a></div></li>
   <li><div class="sidenav-item"><a href="cluster_setup.html">Cluster 
Setup</a></div></li>
+  <li><div class="sidenav-item"><a href="gce_setup.html">GCE 
Setup</a></div></li>
   <li><div class="sidenav-item"><a href="yarn_setup.html">YARN 
Setup</a></div></li>
   <li><div class="sidenav-item-bottom"><a 
href="config.html">Configuration</a></div></li>
 

http://git-wip-us.apache.org/repos/asf/flink/blob/f361e7d0/docs/gce_setup.md
----------------------------------------------------------------------
diff --git a/docs/gce_setup.md b/docs/gce_setup.md
new file mode 100644
index 0000000..f3d8cba
--- /dev/null
+++ b/docs/gce_setup.md
@@ -0,0 +1,83 @@
+---
+title:  "Google Compute Engine Setup"
+---
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+* This will be replaced by the TOC
+{:toc}
+
+
+This documentation provides instructions on how to setup Flink fully
+automatically with Hadoop 1 or Hadoop 2 on top of a
+[Google Compute Engine](https://cloud.google.com/compute/) cluster. This is 
made
+possible by Google's [bdutil](https://cloud.google.com/hadoop/bdutil) which
+starts a cluster and deploys Flink with Hadoop.
+
+# Prerequisites
+
+## Install Google Cloud SDK
+
+Please follow the instructions on how to setup the
+[Google Cloud SDK](https://cloud.google.com/sdk/).
+
+## Install bdutil
+
+Please follow the instructions on how to setup
+[bdutil](https://cloud.google.com/hadoop/bdutil).
+
+
+# Deploying Flink on Google Compute Engine
+
+## Set up a bucket
+
+If you have not done so, create a bucket for the bdutil config and
+staging files. A new bucket can be created with gsutil:
+
+    gsutil mb gs://<bucket_name>
+
+
+## Adapt the bdutil config
+
+To deploy Flink with bdutil, adapt at least the following variables in
+bdutil_env.sh.
+
+    CONFIGBUCKET="<bucket_name>"
+    PROJECT="<compute_engine_project_name>"
+    NUM_WORKERS=<number_of_workers>
+
+## Adapt the Flink config
+
+bdutil's Flink extension handles the configuration for you. You may 
additionally
+adjust configuration variables in `extensions/flink/flink_env.sh`. If you want
+to make further configuration, please take a look at
+[configuring Flink](config.md). You will have to restart Flink after changing
+its configuration using `bin/stop-cluster` and `bin/start-cluster`.
+
+## Bring up a cluster with Flink
+
+To bring up the Flink cluster on Google Compute Engine, execute:
+
+    ./bdutil -e extensions/flink/flink_env.sh deploy
+
+## Run a Flink example job:
+
+    ./bdutil shell
+    cd /home/hadoop/flink-install/bin
+    ./flink run ../examples/flink-java-examples-*-WordCount.jar 
gs://dataflow-samples/shakespeare/othello.txt gs://<bucket_name>/output

Reply via email to