[
https://issues.apache.org/jira/browse/BEAM-5436?focusedWorklogId=149459&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-149459
]
ASF GitHub Bot logged work on BEAM-5436:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Sep/18 20:19
Start Date: 28/Sep/18 20:19
Worklog Time Spent: 10m
Work Description: aaltay closed pull request #6442: [BEAM-5436] Improve
docs for Go SDK
URL: https://github.com/apache/beam/pull/6442
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/website/src/get-started/quickstart-go.md
b/website/src/get-started/quickstart-go.md
index 9be5d12e2df..7a980640842 100644
--- a/website/src/get-started/quickstart-go.md
+++ b/website/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/website/src/get-started/wordcount-example.md
b/website/src/get-started/wordcount-example.md
index ab85689fd3b..4296bd57e57 100644
--- a/website/src/get-started/wordcount-example.md
+++ b/website/src/get-started/wordcount-example.md
@@ -453,11 +453,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
```
@@ -764,11 +767,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
```
@@ -1073,11 +1079,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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 149459)
Time Spent: 1h 40m (was: 1.5h)
> 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 40m
> 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)