MonkeyCanCode commented on issue #358: URL: https://github.com/apache/polaris/issues/358#issuecomment-2496042566
@mouadk Here is the steps I performed to create catalog via REST directly without going through CLI: show current catalogs if any: ```sh yong@DESKTOP:~$ curl -X GET -H "Authorization: Bearer principal:root;realm:default-realm" http://localhost:8181/api/management/v1/catalogs {"catalogs":[]} ``` create a new catalog with file as storage backend (file is only for local testing purpose): ```sh yong@DESKTOP:~$ curl -X POST -H "Authorization: Bearer principal:root;realm:default-realm" "http://localhost:8181/api/management/v1/catalogs" \ > -H "Content-Type: application/json" \ > -d '{ > "catalog": { > "name": "polaris", > "type": "INTERNAL", > "readOnly": false, "properti> "properties": { > "default-base-location": "file:///tmp/polaris/" > }, > "storageConfigInfo": { > "storageType": "FILE", > "allowedLocations": [ > "file:///tmp" > ] > } > } > }' ``` list the catalogs again: ```sh yong@DESKTOP:~$ curl -X GET -H "Authorization: Bearer principal:root;realm:default-realm" http://localhost:8181/api/management/v1/catalogs {"catalogs":[{"type":"INTERNAL","type":"INTERNAL","name":"polaris","properties":{"default-base-location":"file:///tmp/polaris/"},"createTimestamp":1732459417891,"lastUpdateTimestamp":1732459417891,"entityVersion":1,"storageConfigInfo":{"storageType":"FILE","storageType":"FILE","allowedLocations":["file:///tmp","file:///tmp/polaris/"]}}]} ``` Let me know if is still causing issue for your setup. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
