-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a316d4
commit 0def8c2
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# GcsVendedTokenProvider | ||
|
||
`GcsVendedTokenProvider` is an `AccessTokenProvider` to provide access tokens for [UCSingleCatalog](UCSingleCatalog.md) to [load tables](UCSingleCatalog.md#loadTable) from [Google Cloud Storage](https://cloud.google.com/storage). | ||
|
||
`GcsVendedTokenProvider` can be configured in a Spark application using the following configuration: | ||
|
||
```text | ||
spark.hadoop.fs.AbstractFileSystem.gs.impl com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS | ||
spark.hadoop.fs.gs.auth.access.token.provider io.unitycatalog.connectors.spark.GcsVendedTokenProvider | ||
spark.hadoop.fs.gs.auth.type ACCESS_TOKEN_PROVIDER | ||
``` | ||
|
||
## getAccessToken { #getAccessToken } | ||
|
||
??? note "AccessTokenProvider" | ||
|
||
```java | ||
AccessToken getAccessToken() | ||
``` | ||
|
||
`getAccessToken` is part of the `AccessTokenProvider` abstraction. | ||
|
||
`getAccessToken` creates a new `AccessToken` based on the following Hadoop Configuration properties: | ||
|
||
Property | Hadoop Property | ||
-|- | ||
`token` | `fs.gs.auth.access.token.credential` | ||
`expirationTime` | `fs.gs.auth.access.token.expiration` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters