[ 
https://issues.apache.org/jira/browse/BEAM-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16609612#comment-16609612
 ] 

Henning Rohde commented on BEAM-5253:
-------------------------------------

Looking at the PR: https://github.com/apache/beam/pull/6357

This is curious. beam.RegisterFunction is optional (to avoid hitting the symbol 
table at runtime) and the example works for me when run with:

$ [...]/src/github.com/apache/beam/sdks/go
$ go run examples/streaming_wordcap/wordcap.go --runner=dataflow [...]

 While the fix is not wrong, something else is going on -- probably how the 
binary is cross-compiled. It seems doing a separate "go build" is causing 
trouble. The instructions on beam.apache.org does a "go install" for comparison.

> Go SDK PubSub example currently broken
> --------------------------------------
>
>                 Key: BEAM-5253
>                 URL: https://issues.apache.org/jira/browse/BEAM-5253
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-go
>            Reporter: Sean Patrick Hagen
>            Assignee: Henning Rohde
>            Priority: Critical
>             Fix For: Not applicable
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The Go SDK contains an example for creating a streaming pipeline that reads 
> from pubsub and outputs the messages. It can be found here: 
> [https://github.com/apache/beam/blob/master/sdks/go/examples/streaming_wordcap/wordcap.go]
>  
> This example is broken and does not work. It fails with the error "failed to 
> execute job: translation failed: no root units" when I try to run it with the 
> direct runner, and it just fails with "Internal Issue (8ed815a0a259018f): 
> 65177287:8503 " when run in Google Dataflow.
>  
>  



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

Reply via email to