From 62a873d2335d5015ac0abceff11af7b8c1a835a7 Mon Sep 17 00:00:00 2001 From: Yuya Ebihara Date: Wed, 31 Jul 2024 10:21:26 +0900 Subject: [PATCH] Fix example when creating a new catalog in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 44d6c7a469..7077a6f73f 100644 --- a/README.md +++ b/README.md @@ -167,9 +167,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.