-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What changes were proposed in this pull request? add credential vending document for fileset ### Why are the changes needed? Fix: #6229 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? just document Co-authored-by: FANNG <[email protected]>
- Loading branch information
1 parent
dec7ea0
commit bb5f4bd
Showing
4 changed files
with
88 additions
and
12 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 |
---|---|---|
|
@@ -480,11 +480,31 @@ For other use cases, please refer to the [Gravitino Virtual File System](./how-t | |
|
||
Since 0.8.0-incubating, Gravitino supports credential vending for ADLS fileset. If the catalog has been [configured with credential](./security/credential-vending.md), you can access ADLS fileset without providing authentication information like `azure-storage-account-name` and `azure-storage-account-key` in the properties. | ||
|
||
### How to create an ADLS Hadoop catalog with credential enabled | ||
### How to create an ADLS Hadoop catalog with credential vending | ||
|
||
Apart from configuration method in [create-adls-hadoop-catalog](#configuration-for-a-adls-hadoop-catalog), properties needed by [adls-credential](./security/credential-vending.md#adls-credentials) should also be set to enable credential vending for ADLS fileset. | ||
Apart from configuration method in [create-adls-hadoop-catalog](#configuration-for-a-adls-hadoop-catalog), properties needed by [adls-credential](./security/credential-vending.md#adls-credentials) should also be set to enable credential vending for ADLS fileset. Take `adls-token` credential provider for example: | ||
|
||
### How to access ADLS fileset with credential | ||
```shell | ||
curl -X POST -H "Accept: application/vnd.gravitino.v1+json" \ | ||
-H "Content-Type: application/json" -d '{ | ||
"name": "adls-catalog-with-token", | ||
"type": "FILESET", | ||
"comment": "This is a ADLS fileset catalog", | ||
"provider": "hadoop", | ||
"properties": { | ||
"location": "abfss://[email protected]/path", | ||
"azure-storage-account-name": "The account name of the Azure Blob Storage", | ||
"azure-storage-account-key": "The account key of the Azure Blob Storage", | ||
"filesystem-providers": "abs", | ||
"credential-providers": "adls-token", | ||
"azure-tenant-id":"The Azure tenant id", | ||
"azure-client-id":"The Azure client id", | ||
"azure-client-secret":"The Azure client secret key" | ||
} | ||
}' http://localhost:8090/api/metalakes/metalake/catalogs | ||
``` | ||
|
||
### How to access ADLS fileset with credential vending | ||
|
||
If the catalog has been configured with credential, you can access ADLS fileset without providing authentication information via GVFS Java/Python client and Spark. Let's see how to access ADLS fileset with credential: | ||
|
||
|
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
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
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