question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UNAUTHENTICATED error writing to BigTable with GOOGLE_APPLICATION_CREDENTIALS

See original GitHub issue

in pom.xml, if I specify the following version, running Dataflow DirectRunner with GOOGLE_APPLICATION_CREDENTIALS that has BigTable admin role would result in UNAUTHENTICATED error

  <dependency>
			<groupId>com.google.cloud.bigtable</groupId>
			<artifactId>bigtable-hbase-beam</artifactId>
			<version>1.10.0</version>
		</dependency>

The output contains many retry errors of com.google.bigtable.repackaged.io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential The fix is to change the pom.xml section to

<dependency>
			<groupId>com.google.cloud.bigtable</groupId>
			<artifactId>bigtable-hbase-beam</artifactId>
			<version>1.5.0</version>
		</dependency>

The output does not contain retry errors writing to BigTable

Please update your README.md to use the 1.5.0 version as an example so developers don’t have to dig around to find the official doc to add the 1.5.0 version. Is 1.10.0 broken by nature?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
igorbernstein2commented, Jul 20, 2019

For future reference, version >= 1.11.1-SNAPSHOT of the bigtable client have a workaround. I will release version 1.12.0 next week

0reactions
liufuyangcommented, Jul 3, 2019

I will give a try 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Cloud Bigtable authentication with Go - Stack Overflow
PermissionDenied Code = 7 // Unauthenticated indicates the request does not have valid // authentication credentials for the operation.
Read more >
Error messages | Document AI - Google Cloud
Verify that you have a valid service account key JSON file stored in the GOOGLE_APPLICATION_CREDENTIALS environment variable. To diagnose this error, try ...
Read more >
Google Bigtable - Portal - StreamSets Docs
The Google Bigtable destination writes data to Google Cloud Bigtable. For information about supported versions, see Supported Systems and Versions.
Read more >
google-cloud Documentation
•Environment variable GOOGLE_APPLICATION_CREDENTIALS pointing to a file ... This defines api_request() for making a generic JSON API request ...
Read more >
Auth for connecting to BigTable from a compute instance
have an app connecting to Google Bigtable using the ... scope (required for reading/writing to Bigtable). The connection works fine ... The error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found