[ 
https://issues.apache.org/jira/browse/BEAM-5436?focusedWorklogId=147699&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-147699
 ]

ASF GitHub Bot logged work on BEAM-5436:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 25/Sep/18 18:04
            Start Date: 25/Sep/18 18:04
    Worklog Time Spent: 10m 
      Work Description: asfgit closed pull request #557: [BEAM-5436] Improve 
docs for Go SDK
URL: https://github.com/apache/beam-site/pull/557
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/get-started/quickstart-go.md b/src/get-started/quickstart-go.md
index 3dcd156266..a14965eb3b 100644
--- a/src/get-started/quickstart-go.md
+++ b/src/get-started/quickstart-go.md
@@ -61,11 +61,14 @@ $ wordcount --input <PATH_TO_INPUT_FILE> --output counts
 {:.runner-dataflow}
 ```
 $ go install github.com/apache/beam/sdks/go/examples/wordcount
+# As part of the initial setup, for non linux users - install package unix 
before run
+$ go get -u golang.org/x/sys/unix
 $ wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt \
             --output gs://<your-gcs-bucket>/counts \
             --runner dataflow \
             --project your-gcp-project \
             --temp_location gs://<your-gcs-bucket>/tmp/ \
+            --staging_location gs://<your-gcs-bucket>/binaries/ \
             
--worker_harness_container_image=apache-docker-beam-snapshots-docker.bintray.io/beam/go:20180515
 ```
 
diff --git a/src/get-started/wordcount-example.md 
b/src/get-started/wordcount-example.md
index 82d6af99b1..8057c9b1f5 100644
--- a/src/get-started/wordcount-example.md
+++ b/src/get-started/wordcount-example.md
@@ -464,11 +464,14 @@ This runner is not yet available for the Go SDK.
 {:.runner-dataflow}
 ```
 $ go install github.com/apache/beam/sdks/go/examples/wordcount
+# As part of the initial setup, for non linux users - install package unix 
before run
+$ go get -u golang.org/x/sys/unix
 $ wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt \
             --output gs://<your-gcs-bucket>/counts \
             --runner dataflow \
             --project your-gcp-project \
             --temp_location gs://<your-gcs-bucket>/tmp/ \
+            --staging_location gs://<your-gcs-bucket>/binaries/ \
             
--worker_harness_container_image=apache-docker-beam-snapshots-docker.bintray.io/beam/go:20180515
 ```
 
@@ -791,11 +794,14 @@ This runner is not yet available for the Go SDK.
 {:.runner-dataflow}
 ```
 $ go install github.com/apache/beam/sdks/go/examples/debugging_wordcount
+# As part of the initial setup, for non linux users - install package unix 
before run
+$ go get -u golang.org/x/sys/unix
 $ debugging_wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt \
                       --output gs://<your-gcs-bucket>/counts \
                       --runner dataflow \
                       --project your-gcp-project \
                       --temp_location gs://<your-gcs-bucket>/tmp/ \
+                      --staging_location gs://<your-gcs-bucket>/binaries/ \
                       
--worker_harness_container_image=apache-docker-beam-snapshots-docker.bintray.io/beam/go:20180515
 ```
 
@@ -1115,11 +1121,14 @@ This runner is not yet available for the Go SDK.
 {:.runner-dataflow}
 ```
 $ go install github.com/apache/beam/sdks/go/examples/windowed_wordcount
+# As part of the initial setup, for non linux users - install package unix 
before run
+$ go get -u golang.org/x/sys/unix
 $ windowed_wordcount --input gs://dataflow-samples/shakespeare/kinglear.txt \
             --output gs://<your-gcs-bucket>/counts \
             --runner dataflow \
             --project your-gcp-project \
             --temp_location gs://<your-gcs-bucket>/tmp/ \
+            --staging_location gs://<your-gcs-bucket>/binaries/ \
             
--worker_harness_container_image=apache-docker-beam-snapshots-docker.bintray.io/beam/go:20180515
 ```
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 147699)
    Time Spent: 1h 20m  (was: 1h 10m)

> Improve docs for Go SDK - getting started for non-linux
> -------------------------------------------------------
>
>                 Key: BEAM-5436
>                 URL: https://issues.apache.org/jira/browse/BEAM-5436
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-go, website
>    Affects Versions: 0.5.0
>         Environment: darwin amd64
>            Reporter: Vitalii Tverdokhlib
>            Assignee: Melissa Pashniak
>            Priority: Trivial
>              Labels: documentation
>             Fix For: Not applicable
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Cross-compiling error on Mac and staging_location required (even if 
> temp_location present]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to