[
https://issues.apache.org/jira/browse/BEAM-3893?focusedWorklogId=82488&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-82488
]
ASF GitHub Bot logged work on BEAM-3893:
----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Mar/18 21:25
Start Date: 20/Mar/18 21:25
Worklog Time Spent: 10m
Work Description: herohde commented on a change in pull request #4911:
[BEAM-3893] Add fallback to unauthenticated access for Go GCS IO
URL: https://github.com/apache/beam/pull/4911#discussion_r175927831
##########
File path: sdks/go/pkg/beam/util/gcsx/gcs.go
##########
@@ -39,6 +41,15 @@ func NewClient(ctx context.Context, scope string)
(*storage.Service, error) {
return storage.New(cl)
Review comment:
I see your point, but not a good way to do that. It seems to go against the
flow of these libraries and we'd have to do far more work manually to achieve
that. I'd prefer not to take that on now. Filed
https://issues.apache.org/jira/browse/BEAM-3896.
----------------------------------------------------------------
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: 82488)
Time Spent: 40m (was: 0.5h)
> Go SDK GCS I/O shouldn't require credentials to read from public buckets
> ------------------------------------------------------------------------
>
> Key: BEAM-3893
> URL: https://issues.apache.org/jira/browse/BEAM-3893
> Project: Beam
> Issue Type: Bug
> Components: sdk-go
> Reporter: Henning Rohde
> Assignee: Henning Rohde
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> We should handle the case where application default credentials are not
> available for public reads. Wordcount running a container fails currently:
> 2018/03/20 20:03:00 Failed to execute job: panic: panic: failed to create GCE
> client: google: could not find default credentials. See
> https://developers.google.com/accounts/docs/application-default-credentials
> for more information. goroutine 1 [running]:
> runtime/debug.Stack(0xc4201728a0, 0xc39460, 0xc4201c0120)
> /usr/local/go/src/runtime/debug/stack.go:24 +0xa7
> github.com/apache/beam/sdks/go/pkg/beam/core/util/reflectx.CallNoPanic.func1(0xc420172f80)
>
> /foo/src/github.com/apache/beam/sdks/go/pkg/beam/core/util/reflectx/call.go:98
> +0x6e
> panic(0xc39460, 0xc4201c0120)
> /usr/local/go/src/runtime/panic.go:491 +0x283
> github.com/apache/beam/sdks/go/pkg/beam/io/textio/gcs.New(0x12f3500,
> 0xc420014060, 0xc420094c40, 0x2)
>
> /foo/src/github.com/apache/beam/sdks/go/pkg/beam/io/textio/gcs/gcs.go:44
> +0x16e
> github.com/apache/beam/sdks/go/pkg/beam/io/textio.newFileSystem(0x12f3500,
> 0xc420014060, 0xc420094c40, 0x31, 0xc420172b50, 0x4bf4ef, 0xc37e60, 0xc37e60)
> /foo/src/github.com/apache/beam/sdks/go/pkg/beam/io/textio/textio.go:68
> +0xac
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)