beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject [2/3] beam-site git commit: Regenerate website
Date Fri, 24 Feb 2017 23:27:42 GMT
Regenerate website


Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/5a77ddc4
Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/5a77ddc4
Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/5a77ddc4

Branch: refs/heads/asf-site
Commit: 5a77ddc4dfff92c2cc4b4d99d6a30adc8b2f4388
Parents: e7721f1
Author: Ahmet Altay <altay@google.com>
Authored: Fri Feb 24 15:27:01 2017 -0800
Committer: Ahmet Altay <altay@google.com>
Committed: Fri Feb 24 15:27:01 2017 -0800

----------------------------------------------------------------------
 content/get-started/quickstart-py/index.html | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/beam-site/blob/5a77ddc4/content/get-started/quickstart-py/index.html
----------------------------------------------------------------------
diff --git a/content/get-started/quickstart-py/index.html b/content/get-started/quickstart-py/index.html
index 8301f3b..f73be31 100644
--- a/content/get-started/quickstart-py/index.html
+++ b/content/get-started/quickstart-py/index.html
@@ -235,7 +235,7 @@ environment’s directories.</p>
   </li>
   <li>
     <p>Install the Apache Beam SDK
-  <code class="highlighter-rouge">pip install dist/apache-beam-sdk-*.tar.gz .[gcp]</code></p>
+  <code class="highlighter-rouge">pip install dist/apache-beam-*.tar.gz</code></p>
   </li>
 </ol>
 
@@ -245,7 +245,18 @@ environment’s directories.</p>
 
 <p>For example, to run <code class="highlighter-rouge">wordcount.py</code>,
run:</p>
 
-<div class="highlighter-rouge"><pre class="highlight"><code>python -m apache_beam.examples.wordcount
--input gs://dataflow-samples/shakespeare/kinglear.txt --output output.txt
+<div class="runner-direct highlighter-rouge"><pre class="highlight"><code>python
-m apache_beam.examples.wordcount --input README.md --output counts
+</code></pre>
+</div>
+
+<div class="runner-dataflow highlighter-rouge"><pre class="highlight"><code>#
As part of the initial setup, install gcp specific extra components.
+pip install dist/apache-beam-*.tar.gz .[gcp]
+python -m apache_beam.examples.wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt
\
+                                         --output gs://&lt;your-gcs-bucket&gt;/counts
\
+                                         --runner DataflowRunner \
+                                         --project your-gcp-project \
+                                         --temp_location gs://&lt;your-gcs-bucket&gt;/tmp/
\
+                                         --sdk_location dist/apache-beam-*.tar.gz
 </code></pre>
 </div>
 


Mime
View raw message