Skip to content

MetastoreService

MetastoreService is a Unity Catalog API service that UnityCatalogServer registers to handle HTTP requests to the base /api/2.1/unity-catalog/ URL.

Method URL Handler Params
GET /metastore_summary getMetastoreSummary  
$ http http://localhost:8081/api/2.1/unity-catalog/metastore_summary | jq '.metastore_id'
"92418bf6-e62c-4d4c-bb5d-e5eda5c82688"

MetastoreRepository

MetastoreService requests the system-wide MetastoreRepository when created.

This MetastoreRepository is used to getMetastoreSummary to handle GET /metastore_summary requests.

Get Metastore Summary

HttpResponse getMetastoreSummary()

getMetastoreSummary requests the system-wide MetastoreRepository instance for the metastore summary.