Create and Manage Databases
Create a database
A database is a container that stores tables. To create a database, a catalog must already exist.
Once the catalog status changes to Running, you can create databases in that catalog.
Follow the steps below to create a database in the Data Catalog service.
-
Go to the KakaoCloud console > Analytics > Data Catalog.
-
In the Database menu, click Create database.
-
In the Create database pop-up window, enter the following information and click Create.
Field Description Type Select the database type.
-Standard database
-Iceberg databaseCatalog Select the catalog to which the database will be added.
- Only catalogs matching the selected type are shown.Name Name of the database Path Enter the Object Storage path that the database will use.
- Bucket selection: Choose an Object Storage bucket
- Directory: Enter a subdirectory path within the bucket
* Note:
- Table paths inherit from the database path.
- When creating a table using Hive, Spark, or Trino without specifying a path, it is automatically set under the database path as\{database location\}/\{table_name\}.
- The full path is set in the formats3a://.Properties (optional) Add database properties Description (optional) Enter a description for the database
Manage databases
This section explains how to manage databases in the Data Catalog service.
View database list
You can view the list of created databases and their basic information.
-
Go to the KakaoCloud console > Analytics > Data Catalog.
-
Click Database to view the list.
Column Description Name Name of the database specified by the user Associated catalog Name of the catalog the database belongs to Status Current status of the database
- For detailed descriptions of each state, see Resource status and lifecycle.Type Database type
-Standard databaseorIceberg databasePath Path where the database is located Created at Date the database was created Created by User who created the database [More] icon - Edit database: Modify the database path or description
- Delete database: Delete the database
* When in theINACTIVEstate, only deletion is available — editing is not allowed.
View database details
View detailed information about a database.
- Go to the KakaoCloud console > Analytics > Data Catalog.
- Select the Database menu, then choose the database to view.
- Review the database information on the details page.
Summary information
| Field | Description |
|---|---|
| Associated catalog | Name of the catalog linked to the database |
| ID | UUID of the database |
| Type | Database type - Standard or Iceberg |
| Path | Path where the database is located |
| Created at | Date the database was created |
Basic information
| Field | Description |
|---|---|
| Table name | Name of the table created by the user |
| Description | Description entered by the user |
| Status | Status of the table - For details, see Resource status and lifecycle. |
| Table type | Table type - Standard or Iceberg |
| Data type | Data format used in the table Standard table types - JSON, ORC, Parquet, CSV, Avro, text, custom ㄴ Tables created and migrated via Hadoop Eco may appear as text or custom. ㄴ text: When the SerDe library is org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe ㄴ custom: When the table format does not fall under Avro, JSON, Parquet, ORC, CSV, or text Iceberg table types - Avro, Parquet, ORC |
| Data storage path | Path where table data is stored |
| Last modified | Date when the table was last modified |
Modify database
You can modify only the path and description of a database.
Database names and associated catalogs cannot be changed. To change them, create a new database.
-
Go to the KakaoCloud console > Analytics > Data Catalog.
-
In the Database menu, click the [More] icon next to the target database and select Edit database.
-
In the Edit database pop-up, modify the information and click Update.
Field Description Path (optional) Modify the database location
- Bucket name: Select an Object Storage bucket
- Directory: Enter a subdirectory path within the bucket
- Note: The full path is set in thes3a://format.Description (optional) Modify the database description
- Not available forStandard databasetype.
Delete database
Delete databases that are no longer in use.
Once deleted, database resources are permanently released and cannot be recovered.
All tables under the deleted database are also deleted permanently and cannot be restored.
- Go to the KakaoCloud console > Analytics > Data Catalog.
- In the Database menu, click the [More] icon next to the target database and select Delete database.
- To delete multiple databases at once, select the checkboxes next to them and click Delete at the bottom.
- In the Delete database pop-up, review the database information, enter
Permanently deleteor the database name, and click Delete.