Resource: HiveCatalog
The HiveCatalog contains spark/hive databases and tables in the BigLake Metastore. While creating resources under a catalog, ideally ensure that the storage bucket location, spark / hive engine location or any other compute location match. Catalog can be viewed as the destination for migrating an on-prem Hive metastore to GCP.
| JSON representation |
|---|
{
"name": string,
"description": string,
"locationUri": string,
"replicas": [
{
object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name. Format: projects/{project_id_or_number}/catalogs/{catalogId} |
description |
Optional. Stores the catalog description. The maximum length is 4000 characters. |
locationUri |
Required. The Cloud Storage location path where the catalog exists. Format: gs://bucket/path/to/catalog The maximum length is 4000 characters. |
replicas[] |
Output only. The replicas for the catalog metadata. |
createTime |
Output only. The creation time of the catalog. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. The update time of the catalog. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Replica
The replica of the Catalog.
| JSON representation |
|---|
{
"region": string,
"state": enum ( |
| Fields | |
|---|---|
region |
Output only. The region of the replica. For example |
state |
Output only. The current state of the replica. |
State
If the catalog is replicated to multiple regions, this enum describes the current state of the replica.
| Enums | |
|---|---|
STATE_UNSPECIFIED |
The replica state is unknown. |
STATE_PRIMARY |
Indicates the replica is the writable primary. |
STATE_PRIMARY_IN_PROGRESS |
Indicates the replica has been recently assigned as the primary, but not all databases are writeable yet. |
STATE_SECONDARY |
Indicates the replica is a read-only secondary replica. |
Methods |
|
|---|---|
|
Creates a new hive catalog. |
|
Deletes an existing catalog specified by the catalog ID. |
|
Gets the catalog specified by the resource name. |
|
List all catalogs in a specified project. |
|
Updates an existing catalog. |