Managed Service for Hive Metastore™ API, gRPC: ClusterService.Create
- gRPC request
- CreateClusterRequest
- ConfigSpec
- Resources
- LoggingConfig
- NetworkConfig
- MaintenanceWindow
- AnytimeMaintenanceWindow
- WeeklyMaintenanceWindow
- operation.Operation
- CreateClusterMetadata
- Cluster
- Monitoring
- ClusterConfig
- Resources
- LoggingConfig
- NetworkConfig
- MaintenanceWindow
- AnytimeMaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Creates a Metastore Cluster.
gRPC request
rpc Create (CreateClusterRequest) returns (operation.Operation)
CreateClusterRequest
{
"folder_id": "string",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"deletion_protection": "bool",
"version": "string",
"config_spec": {
"resources": {
"resource_preset_id": "string"
}
},
"service_account_id": "string",
"logging": {
"enabled": "bool",
// Includes only one of the fields `folder_id`, `log_group_id`
"folder_id": "string",
"log_group_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"network": {
"subnet_ids": [
"string"
],
"security_group_ids": [
"string"
]
},
"maintenance_window": {
// Includes only one of the fields `anytime`, `weekly_maintenance_window`
"anytime": "AnytimeMaintenanceWindow",
"weekly_maintenance_window": {
"day": "WeekDay",
"hour": "int64"
}
// end of the list of possible fields
}
}
|
Field |
Description |
|
folder_id |
string Required field. ID of the folder to create the Metastore Cluster in. The maximum string length in characters is 50. |
|
name |
string Required field. Name of the Metastore Cluster. The maximum string length in characters is 63. Value must match the regular expression |
|
description |
string Description of the Metastore Cluster. The maximum string length in characters is 256. |
|
labels |
object (map<string, string>) Custom labels for the Metastore Cluster as No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression |
|
deletion_protection |
bool Deletion Protection prevents deletion of the cluster. |
|
version |
string Metastore server version. |
|
config_spec |
Configuration of the Metastore Cluster. |
|
service_account_id |
string Required field. Service account used to access Cloud resources. The maximum string length in characters is 50. |
|
logging |
Cloud logging configuration. |
|
network |
Network-related configuration options. |
|
maintenance_window |
Maintenance window. |
ConfigSpec
|
Field |
Description |
|
resources |
Configuration for computational resources for Metastore server instances. |
Resources
|
Field |
Description |
|
resource_preset_id |
string Required field. ID of the preset for computational resources allocated to an instance (e.g., CPU, memory, etc.). The maximum string length in characters is 50. |
LoggingConfig
|
Field |
Description |
|
enabled |
bool Logs generated by the Metastore server are delivered to Cloud Logging. |
|
folder_id |
string Logs will be written to the default log group of the specified folder. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
log_group_id |
string Logs will be written to the log group specified by its ID. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
min_level |
enum Level Minimum severity level for log entries. See LogLevel.Level for details.
|
NetworkConfig
|
Field |
Description |
|
subnet_ids[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
|
security_group_ids[] |
string User security groups. |
MaintenanceWindow
|
Field |
Description |
|
anytime |
The cluster may be restarted for maintenance at any time. Includes only one of the fields |
|
weekly_maintenance_window |
Maintenance is allowed only within the specified weekly window. Includes only one of the fields |
AnytimeMaintenanceWindow
|
Field |
Description |
|
Empty |
|
WeeklyMaintenanceWindow
|
Field |
Description |
|
day |
enum WeekDay Day of the week when maintenance can occur.
|
|
hour |
int64 Hour of the day in UTC when the maintenance window starts. Acceptable values are 1 to 24, inclusive. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"cluster_id": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"labels": "map<string, string>",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"health": "Health",
"status": "Status",
"deletion_protection": "bool",
"version": "string",
"network_id": "string",
"endpoint_ip": "string",
"cluster_config": {
"resources": {
"resource_preset_id": "string"
}
},
"service_account_id": "string",
"logging": {
"enabled": "bool",
// Includes only one of the fields `folder_id`, `log_group_id`
"folder_id": "string",
"log_group_id": "string",
// end of the list of possible fields
"min_level": "Level"
},
"network": {
"subnet_ids": [
"string"
],
"security_group_ids": [
"string"
]
},
"maintenance_window": {
// Includes only one of the fields `anytime`, `weekly_maintenance_window`
"anytime": "AnytimeMaintenanceWindow",
"weekly_maintenance_window": {
"day": "WeekDay",
"hour": "int64"
}
// end of the list of possible fields
},
"planned_operation": {
"info": "string",
"delayed_until": "google.protobuf.Timestamp",
"latest_maintenance_time": "google.protobuf.Timestamp",
"next_maintenance_window_time": "google.protobuf.Timestamp"
}
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
|
Field |
Description |
|
id |
string ID of the operation. |
|
description |
string Description of the operation. 0-256 characters long. |
|
created_at |
Creation timestamp. |
|
created_by |
string ID of the user or service account who initiated the operation. |
|
modified_at |
The time when the Operation resource was last modified. |
|
done |
bool If the value is |
|
metadata |
Service-specific metadata associated with the operation. |
|
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
|
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateClusterMetadata
|
Field |
Description |
|
cluster_id |
string ID of the Metastore Cluster that is being created. |
Cluster
Metastore Cluster.
|
Field |
Description |
|
id |
string Unique ID of the Metastore Cluster. |
|
folder_id |
string ID of the folder that the Metastore Cluster belongs to. |
|
created_at |
The time the Metastore Cluster was created at. |
|
name |
string Name of the Metastore Cluster. |
|
description |
string Description of the Metastore Cluster. |
|
labels |
object (map<string, string>) Custom labels for the Metastore Cluster as |
|
monitoring[] |
Monitoring systems relevant to the Metastore Cluster. |
|
health |
enum Health Aggregated cluster health.
|
|
status |
enum Status Cluster status.
|
|
deletion_protection |
bool Deletion Protection prevents deletion of the cluster. |
|
version |
string Metastore server version. |
|
network_id |
string Metastore network ID. |
|
endpoint_ip |
string IP address of the Metastore server load balancer. |
|
cluster_config |
Configuration of the Metastore Cluster. |
|
service_account_id |
string Service account used to access Cloud resources. |
|
logging |
Cloud logging configuration. |
|
network |
Network-related configuration options. |
|
maintenance_window |
Maintenance window. |
|
planned_operation |
Maintenance operation scheduled for the nearest maintenance window. |
Monitoring
|
Field |
Description |
|
name |
string Name of the monitoring system. |
|
description |
string Description of the monitoring system. |
|
link |
string Link to the monitoring system. |
ClusterConfig
|
Field |
Description |
|
resources |
Configuration for computational resources for Metastore server instances. |
Resources
|
Field |
Description |
|
resource_preset_id |
string Required field. ID of the preset for computational resources allocated to an instance (e.g., CPU, memory, etc.). The maximum string length in characters is 50. |
LoggingConfig
|
Field |
Description |
|
enabled |
bool Logs generated by the Metastore server are delivered to Cloud Logging. |
|
folder_id |
string Logs will be written to the default log group of the specified folder. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
log_group_id |
string Logs will be written to the log group specified by its ID. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
min_level |
enum Level Minimum severity level for log entries. See LogLevel.Level for details.
|
NetworkConfig
|
Field |
Description |
|
subnet_ids[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
|
security_group_ids[] |
string User security groups. |
MaintenanceWindow
|
Field |
Description |
|
anytime |
The cluster may be restarted for maintenance at any time. Includes only one of the fields |
|
weekly_maintenance_window |
Maintenance is allowed only within the specified weekly window. Includes only one of the fields |
AnytimeMaintenanceWindow
|
Field |
Description |
|
Empty |
|
WeeklyMaintenanceWindow
|
Field |
Description |
|
day |
enum WeekDay Day of the week when maintenance can occur.
|
|
hour |
int64 Hour of the day in UTC when the maintenance window starts. Acceptable values are 1 to 24, inclusive. |
MaintenanceOperation
|
Field |
Description |
|
info |
string Information about the maintenance operation. The maximum string length in characters is 256. |
|
delayed_until |
Maintenance is postponed until the specified timestamp. |
|
latest_maintenance_time |
Timestamp of the latest successfully completed maintenance. |
|
next_maintenance_window_time |
Timestamp of the next scheduled maintenance window. |