Create and manage databases
A database is a logical container for tables. This guide explains how to create and manage databases.
Create 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.
This guide explains how to manage databases in Data Catalog.
-
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
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 [⋮] button Modify or delete database
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
Field Description Status Database status Type Database type
-StandardorIcebergConnected catalog Name of the catalog connected to the database ID Database UUID Path Path where the database is located Created at Date the database was created
Details
You can view, create, and manage tables and database properties that belong to the database.
- Tables
- Database properties
| Item | Description |
|---|---|
| Table name | User-created table name |
| Description | User-entered description |
| Status | Table state See Resource status and lifecycle |
| Table type | Standard or Iceberg |
| Data type | Standard tables: JSON, ORC, Parquet, CSV, Avro, text, custom - Tables created by Hadoop Eco and then migrated may appear as text or custom - text: The SerDe library is org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe- custom: A type other than Avro, JSON, Parquet, ORC, CSV, or text Iceberg tables: Avro, Parquet, ORC |
| Data storage path | Storage path for table data |
| Last modified | Date when the table was last modified |
| Item | Description |
|---|---|
| Key | User-defined database property key |
| Value | User-defined database property value |
- Deleting database properties is supported only for Iceberg databases.
- The Iceberg database property
locationmatches the path entered at database creation. Changing this property also changes the database path, and changing the database path also updates this property.
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.
- In the Delete database pop-up, review the database information, enter
Permanently deleteor the database name, and click Delete.