tencent cloud

Elastic MapReduce

Table Management

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-02-26 14:31:48

Overview

This article introduces how to manage namespaces and tables in HBase through the EMR console.

Directions

Managing Namespaces

Note:
1. After the instance is created, the default namespace will be created by default. The default namespace cannot be deleted. You can add or delete custom namespaces through namespace management.
2. To delete a custom namespace, you must first delete all tables within the namespace.
1. Log in to the EMR Serverless HBase console, find the instance from the instance list, and click the Instance ID to enter the Instance Information page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Click Namespace Management to view existing namespaces, add or delete custom namespaces.

Creating a Table

Note:
The console only provides simple table creation operations. For more complex table properties, please use the HBase API.
1. Log in to the EMR Serverless HBase console, find the instance from the instance list, and click the Instance ID to enter the Instance Information page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Click Create Table to configure the table's attributes.
Item
Configuration Instructions
Namespace
Select the table's namespace
Table Name
Set the table name
Pre-partition
Select a pre-partition algorithm. Default is no partition.
Partition Count
After selecting a pre-partition algorithm, you can set the partition count, with a range of 2 to 100.
Column Family
Set column family name and TTL. Up to 5 column families can be set. Note: Column families cannot be modified in the console after creation.
4. After configuring the table, click Create to add the table.

Modifying the Table

Modifying the table only supports adding new column families or modifying the TTL of existing column families.
1. Log in to the EMR Serverless HBase console, find the instance to manage from the instance list, and click the Instance ID to enter the Instance Information Page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Locate the table to be modified in the table list and click Modify in the operation column.
4. In the Table Modification popup, add a new column family or modify the TTL of an existing column family. After completing the operation, click Save.

Enabling/Disabling a Table

Tables in enabled status can be read and written. Tables in disabled status cannot be read and written but supports metadata operations. To ensure that the data in the table is modified or accessed when modifying the table API or clearing data, you may disable the table first.
1. Log in to the EMR Serverless HBase console, find the instance from the instance list, and click the Instance ID to enter the Instance Information page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Find the table to be modified in the table list, enable/disable the table as needed, confirm the operation risk, and click Confirm Enable/Confirm Disable.

Querying a Table

1. Log in to the EMR Serverless HBase console, find the instance from the instance list, and click the Instance ID to enter the Instance Information page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Find the table to query in the table list, and click Query Table in the operation column to enter the table query page.
4. After entering the query condition, click Query to get the result.

Deleting a Table

1. Log in to the EMR Serverless HBase console, find the instance from the instance list, and click the Instance ID to enter the Instance Information page.
2. Click Table Management in the left menu to enter the Table Management page.
3. Find the table to be deleted in the table list and click Delete in the operation column.
4. Confirm the deletion risk, then click Confirm Deletion.
Note:
Only the tables in disabled status can be deleted. Please set the table status to disabled before proceeding.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック