Repository: beam-site Updated Branches: refs/heads/asf-site 61de614fb -> 0b21f131a
Simplify python quick start. Project: http://git-wip-us.apache.org/repos/asf/beam-site/repo Commit: http://git-wip-us.apache.org/repos/asf/beam-site/commit/af0821f3 Tree: http://git-wip-us.apache.org/repos/asf/beam-site/tree/af0821f3 Diff: http://git-wip-us.apache.org/repos/asf/beam-site/diff/af0821f3 Branch: refs/heads/asf-site Commit: af0821f3628705036addc24f00d6ecb2a7fd9a4c Parents: 61de614 Author: Ahmet Altay <al...@google.com> Authored: Mon Mar 20 15:31:14 2017 -0700 Committer: Ahmet Altay <al...@google.com> Committed: Mon Mar 20 17:57:02 2017 -0700 ---------------------------------------------------------------------- src/get-started/quickstart-py.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam-site/blob/af0821f3/src/get-started/quickstart-py.md ---------------------------------------------------------------------- diff --git a/src/get-started/quickstart-py.md b/src/get-started/quickstart-py.md index c04bf09..6d729bd 100644 --- a/src/get-started/quickstart-py.md +++ b/src/get-started/quickstart-py.md @@ -63,7 +63,10 @@ For instructions using other shells, see the [virtualenv documentation](https:// ### Download and install Install the latest Python SDK from PyPI: - `pip install apache-beam` + +``` +pip install apache-beam +``` ## Execute a pipeline locally @@ -78,14 +81,13 @@ python -m apache_beam.examples.wordcount --input README.md --output counts {:.runner-dataflow} ``` -# As part of the initial setup, install gcp specific extra components. -pip install dist/apache-beam-*.tar.gz .[gcp] +# As part of the initial setup, install Google Cloud Platform specific extra components. +pip install apache-beam[gcp] python -m apache_beam.examples.wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt \ --output gs://<your-gcs-bucket>/counts \ --runner DataflowRunner \ --project your-gcp-project \ - --temp_location gs://<your-gcs-bucket>/tmp/ \ - --sdk_location dist/apache-beam-*.tar.gz + --temp_location gs://<your-gcs-bucket>/tmp/ ``` ## Next Steps