I develop app using scala for download encrypted file from GCS (encrypted file using customer-supplied encryption keys) by service account credentials on hdfs
val path = new Path(keyfile)
val fs = FileSystem.get(path.toUri, spark.sparkContext.hadoopConfiguration)
val storage = StorageOptions.newBuilder.setCredentials(ServiceAccountCredentials.fromStream(fs.open(path))).build.getService
I found the error
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkArgument(ZLjava/lang/String;Ljava/lang/Object;)