Update metalake
PUT/metalakes/:name
Applies one or more changes to a metalake, such as a rename, a new comment, or added or removed properties, and returns the updated metalake. The metalake must be in use.
Sign in with a bearer token or a local user's password; see Authentication.
Request
Path Parameters
The name of the metalake
- application/json
Body
Array [
- RenameMetalakeRequest
- UpdateMetalakeCommentRequest
- SetMetalakePropertyRequest
- RemoveMetalakePropertyRequest
]
updates
object[]
required
oneOf
Possible values: [rename]
The new name of the metalake
Possible values: [updateComment]
The new comment of the metalake
Possible values: [setProperty]
The property to set
The value to set
Possible values: [removeProperty]
The property to remove
Responses
- 200
- 404
- 409
- 500
The metalake, with its comment, properties and audit information.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- MetalakeResponse
Schema
Possible values: [0]
Status code of the response
metalake
object
Gravitino Metalake is the top-level metadata repository for users. It contains a list of catalogs as sub-level metadata collections. With GravitinoMetaLake, users can list, create, load, alter and drop a catalog with specified identifier.
The name of the Metalake
A comment about the Metalake
audit
object
Audit information for a Gravitino resource.
The user who created the resource
The time the resource was created
The user who last modified the resource
The time the resource was last modified
properties
object
Configured string to string map of properties for the Metalake
{
"code": 0,
"metalake": {
"name": "my_metalake",
"comment": "This is my metalake",
"properties": {
"key1": "value1",
"key2": "value2",
"in-use": "true"
},
"audit": {
"creator": "gravitino",
"createTime": "2023-12-07T14:04:17.349Z"
}
}
}
{
"code": 0,
"metalake": {
"name": "my_metalake",
"comment": "This is my metalake",
"properties": {
"key1": "value1",
"key2": "value2",
"in-use": "true"
},
"audit": {
"creator": "gravitino",
"createTime": "2023-12-06T14:21:24.982Z"
}
}
}
The metalake does not exist.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchMetalakeException
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1003,
"type": "NoSuchMetalakeException",
"message": "Failed to operate metalake(s) [test] operation [LOAD], reason [NoSuchMetalakeException]",
"stack": [
"org.apache.gravitino.exceptions.NoSuchMetalakeException: Metalake test does not exist",
"..."
]
}
A metalake with the new name already exists.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- MetalakeAlreadyExistsException
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}
{
"code": 1004,
"type": "MetalakeAlreadyExistsException",
"message": "Failed to operate metalake(s) [my_metalake] operation [CREATE], reason [MetalakeAlreadyExistsException]",
"stack": [
"org.apache.gravitino.exceptions.MetalakeAlreadyExistsException: Metalake my_metalake already exists",
"..."
]
}
The server hit an internal error, such as a failure in its storage backend.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
Deprecated diagnostic stack trace. Enterprise omits it by default because it can expose internal implementation details. Operators can opt in for controlled diagnostics with gravitino.server.webserver.includeErrorStackTrace=true. See OWASP REST Security: Error handling and CWE-209.
{
"code": 1002,
"type": "string",
"message": "string"
}