You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "vanphuoc3012 (via GitHub)" <gi...@apache.org> on 2026/08/26 05:33:08 UTC

[I] [Subtask] Support GCS credential vending for Hive catalog in Spark connector [gravitino]

vanphuoc3012 opened a new issue, #12629:
URL: https://github.com/apache/gravitino/issues/12629

   ### Describe the subtask
   
   When a Hive catalog is configured with `credential-providers=gcs-token` and `gcs-service-account-file`, the Gravitino server correctly vends a `GCSTokenCredential` (OAuth2 access token). However, the Spark connector's Hive path does not consume it.
   
   In `spark-connector/spark-common/.../hive/GravitinoHiveCatalog.java`, `applyS3Credential()` only handles `S3SecretKeyCredential`, `OSSSecretKeyCredential`, and `AzureAccountKeyCredential`. Any other credential type — including `GCSTokenCredential` — falls into the `else` branch and is silently dropped with a warning:
   
   ```
   Received unrecognized credential type '...' for Hive catalog, skipping
   ```
   
   As a result, Spark jobs reading GCS-backed Hive tables fail with authentication errors even though vending is enabled.
   
   Unlike S3/OSS/Azure (simple key/secret pairs injected as Hadoop config), GCS requires setting `fs.gs.auth.access.token.provider.impl` to a class implementing `com.google.cloud.hadoop.util.AccessTokenProvider`, so a small provider implementation is needed to bridge the pre-vended token into the GCS connector.
   
   ### Parent issue
   
   #5063
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Subtask] Support GCS credential vending for Hive catalog in Spark connector [gravitino]

Posted by "sachinnn99 (via GitHub)" <gi...@apache.org>.
sachinnn99 commented on issue #12629:
URL: https://github.com/apache/gravitino/issues/12629#issuecomment-5581047430

   I'd like to work on this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Subtask] Support GCS credential vending for Hive catalog in Spark connector [gravitino]

Posted by "SachinForNeenjas (via GitHub)" <gi...@apache.org>.
SachinForNeenjas commented on issue #12629:
URL: https://github.com/apache/gravitino/issues/12629#issuecomment-5590074761

   Unassigning myself, I will not be working on this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Subtask] Support GCS credential vending for Hive catalog in Spark connector [gravitino]

Posted by "sachinnn99 (via GitHub)" <gi...@apache.org>.
sachinnn99 commented on issue #12629:
URL: https://github.com/apache/gravitino/issues/12629#issuecomment-5590096164

   Unassigning myself, I will not be working on this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org