0

We are able to Publish events from Apache Nifi to Google Pubsub Lite using Application Default Credentials created using gcloud auth application-default login

We want to use Google Service account instead of ADC but we are getting the below error,

PublishGCPubSubLite[id=7f9baf80-0184-1000-ffff-ffff8ec321b3] Failed to create Google Cloud PubSub Lite enter image description herePublisher: com.google.api.gax.rpc.UnauthenticatedException: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
- Caused by: io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

A case has been raised in the cloudera and seems there is no Answer there as well, please find the link below,

https://community.cloudera.com/t5/Support-Questions/PublishGCPubSubLite-processor-in-Apache-NiFi/m-p/348988

Please find the below documentation of Apache Nifi to publish to Google Pubsublite ,where they mentioned its possible only with 'Use Application Default Credentials' or 'Use Compute Engine Credentials'.

https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-gcp-nar/1.17.0/org.apache.nifi.processors.gcp.pubsub.lite.PublishGCPubSubLite/index.html

Please let us know if we can use the Service account in Apache Nifi to pubish Messages to PubsubLite topics. If its possible are we missing anything.

0 Answers0