beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Cwik (JIRA)" <>
Subject [jira] [Commented] (BEAM-2101) (Potential) Reading public GCS files requires authentication
Date Thu, 27 Apr 2017 17:13:04 GMT


Luke Cwik commented on BEAM-2101:

We ran into the same problem within the Java code base, the issue is that we assumed we always
needed credentials instead of trying to get credentials and if that failed attempt the call
anyways. This was an issue for all GCP IOs like GCS, Datastore, BigQuery

> (Potential) Reading public GCS files requires authentication
> ------------------------------------------------------------
>                 Key: BEAM-2101
>                 URL:
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py
>            Reporter: Ahmet Altay
> cc: [~sb2nov]
> [] reported this on hackathon, while running wordcount. Even though
plain gsutil works fine on the public file, wordcount fails. It is possible that some other
authentication is required as part of the validation.
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "apache_beam/io/", line 390, in __init__
>     skip_header_lines=skip_header_lines)
>   File "apache_beam/io/", line 89, in __init__
>     validate=validate)
>   File "apache_beam/io/", line 103, in __init__
>     self._validate()
>   File "apache_beam/utils/", line 101, in _f
>     return fnc(self, *args, **kwargs)
>   File "apache_beam/io/", line 163, in _validate
>     match_result = FileSystems.match([pattern], limits=[1])[0]
>   File "apache_beam/io/", line 81, in match
>     return filesystem.match(patterns, limits)
>   File "apache_beam/io/gcp/", line 100, in match
>     raise BeamIOError("Match operation failed", exceptions)
> Match operation failed with exceptions {'gs://apache-beam-samples/shakespeare/hamlet.txt':
ApplicationDefaultCredentialsError('The Application Default Credentials are not available.
They are available if running in Google Compute Engine. Otherwise, the environment variable
GOOGLE_APPLICATION_CREDENTIALS must be defined pointing to a file defining the credentials.
See for more information.',)}

This message was sent by Atlassian JIRA

View raw message