I am unable to authenticate my Dataflow Beam application when I run it in Intellij Idea. This worked for me at one point recently and now it doesn't.
Auth is failing with 403 forbidden '"Access Denied: Project [myProject]: User does not have bigquery.jobs.create permission in project [myProject].'
- I have verified that I DO have this permission in both my gcp user and service account.
- I have set GOOGLE_APPLICATION_CREDENTIALS with the path to a service account json in my MacOS Zshell profile.
- This same profile configuration works when I run a different client lib Node JS app in VSCode using the same service account token.
- This same java Dataflow pipeline authenticates when I run/debug it in Eclipse IDE.
- Running mvn package from terminal on the same pipeline is also authenticating and writing the template to my GCS storage bucket.
- I have added additional service accounts to my gcloud configuration with 'gcloud auth activate-service-account' and can see them listed with 'gcloud auth list'
- I have tried setting the active account to both service accounts.
- I have tried setting the --serviceAccount Beam option to a service account I know has correct permissions.
- I would like to try to setting the service token path to the BigQueryIO java Dataflow connector as I am able to do with the Node JS client lib, but it doesn't seem possible?
- The debugger does work and I can hit a break point.
- I have tried installing latest and Version: 2020.1.1 Build: 201.7223.91 29 April 2020
- I have tried uninstalling and reinstalling Intellij and creating a new project.
It appears as though this security context is not getting passed to the Dataflow Java Beam library, but the exception output does say 'Inferred default GCP project 'fubotv-prod' from gcloud.' so apparently some args are getting through.
Perhaps there is some cached response build state or something?
I spent all day stuck on this. I am at my wits end. I would really like to debug my Dataflow pipeline again with Intellij. Any solutions, ideas, random words of encouragement are much appreciated!