Discover the Iceberg REST service endpoint
GET/system/iceberg-rest
Reports the endpoint of the Iceberg REST service running as an auxiliary service of this Gravitino server, so that clients which already connect to the Gravitino server, such as the Trino connector, can discover it instead of configuring it separately. The reported uri is null when the service is not registered, does not use the dynamic catalog config provider, or serves a different metalake than the requested one. When gravitino.iceberg-rest.advertised-uri is configured, it is reported as-is; otherwise the endpoint is derived from the service's listener configuration, and a wildcard listener host is replaced with the host the caller used to reach the Gravitino server. The response is therefore marked Cache-Control: no-store.
Request
Query Parameters
The metalake the caller intends to route through the Iceberg REST service. When omitted or blank, the endpoint is reported regardless of which metalake it serves.
Responses
- 200
- 4XX
- 5XX
The Iceberg REST service endpoint
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- IcebergRESTServiceAvailable
- IcebergRESTServiceUnavailable
Schema
Response code, 0 for success
The Iceberg REST service endpoint, or null when the service is not running or does not serve the requested metalake
{
"code": 0,
"uri": "http://gravitino-host:9001/iceberg"
}
{
"code": 0,
"uri": "http://gravitino-host:9001/iceberg"
}
{
"code": 0,
"uri": null
}
Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "BadRequestException",
"message": "Malformed request"
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}