I am trying to use gcs-connector library in java as is explained here at https://github.com/GoogleCloudDataproc/hadoop-connectors/blob/master/gcs/INSTALL.md . I have added following properties in core-site.xml as mentioned in the link above
fs.AbstractFileSystem.gs.impl fs.gs.project.id google.cloud.auth.service.account.enable google.cloud.auth.service.account.json.keyfileBut I am getting error as P12 key file may not be specified at the same time as credentials via configuration. although I have passed this parameter. Can see in local value is assigned to variable as expected
As can be see here code is failing because it is trying to check non null string (as can be seen in the attached screenshot ). Although it is able to read value from config but Strings.isNullOrEmpty(options.getServiceAccountKeyFile()) is failing the code.
Requesting someone to please help us with this.
Or if someone could suggest some resource where we can see interaction of Java service with gcs using gcs-connector library.