Updated on 2025-07-25 GMT+08:00

HBase Data Read/Write Sample Program Development Plan

Function Description

Determine functions to be developed based on the preceding scenario. Table 1 describes functions to be developed.

Table 1 Functions to be developed in HBase

No.

Procedure

Code Implementation

1

Create a table based on the information in Typical Scenarios of the HBase Data Read/Write Sample Program.

For details, see Creating an HBase Table.

2

Import user data.

For details, see Inserting HBase Data.

3

Add an educational background column family, and add educational backgrounds and titles to the user information table.

For details, see Modifying an HBase Table.

4

Query user names and addresses by user ID.

For details, see Reading HBase Data Using the GET Command.

5

Query information by user name.

For details, see Using an HBase Filter.

6

Deregister users and delete user data from the user information table.

For details, see Deleting HBase Data.

7

Delete the user information table after service A ends.

For details, see Deleting an HBase Table.

Key Design Principles

HBase is a distributed database system based on the lexicographic order of RowKeys. The RowKey design has great impact on performance, so the RowKeys must be designed based on specific services.