From f295ed3c4c3e9695d0b8ae18a2f63ae2376e0a9c Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Fri, 2 Aug 2024 04:44:27 +0900 Subject: [PATCH] Fix example when creating a new catalog in README (#29) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 51f261fd6..03ca850cc 100644 --- a/README.md +++ b/README.md @@ -173,9 +173,9 @@ api: ```bash $ export PRINCIPAL_TOKEN=ver:1-hint:1036-ETMsDgAAAY/GPANareallyverylongstringthatissecret -$ curl -i -X PUT -H "Authorization: Bearer $PRINCIPAL_TOKEN" -H 'Accept: application/json' -H 'Content-Type: application/json' \ - http://${POLARIS_HOST:-localhost}:8181/api/v1/catalogs \ - -d '{"name": "polaris", "id": 100, "type": "INTERNAL", "readOnly": false}' +$ curl -i -X POST -H "Authorization: Bearer $PRINCIPAL_TOKEN" -H 'Accept: application/json' -H 'Content-Type: application/json' \ + http://${POLARIS_HOST:-localhost}:8181/api/management/v1/catalogs \ + -d '{"name": "polaris", "id": 100, "type": "INTERNAL", "readOnly": false, "storageConfigInfo": {"storageType": "FILE"}, "properties": {"default-base-location": "file:///tmp/polaris"}}' ``` This creates a catalog called `polaris`. From here, you can use Spark to create namespaces, tables, etc.