Can't access GCP Access Secret Manager from Dataproc sparkjob

Viewed 832

I am trying to fetch GCP secret manager secret from dataproc spark job. But I am getting the error "Exception in thread "main" java.lang.NoClassDefFoundError: com/google/cloud/secretmanager/v1/AccessSecretVersionResponse". I have added the jars "google-cloud-secretmanager-1.4.2.jar" and "gax-1.62.0.jar" in the dataproc spark job dependency.

I am using the code mentioned in the below GCP link. https://cloud.google.com/secret-manager/docs/reference/libraries

Am I missing something here?

1 Answers
Related