Updated on 2023-08-31 GMT+08:00

Development Process

This document describes HBase application development based on the Java API.

For information about each phase in the development process, see Figure 1 and Table 1.

Figure 1 HBase application development process
Table 1 HBase application development process description

Phase

Description

Reference Document

Prepare the development environment.

Before developing an application, you need to prepare the development environment. You are advised to use the Java language and IntelliJ IDEA tool for development. In addition, you need to complete the initial configuration of the JDK and Maven.

Preparing for Development Environment

Prepare the Configuration File for Connecting to the Cluster.

During application development or running, you need to connect to the MRS cluster through cluster configuration files. Configuration files include cluster component information files. You can obtain related content from the created MRS cluster.

Nodes used for program commissioning or running must be able to communicate with nodes in the MRS cluster and the hosts domain name must be configured.

Preparing the Configuration Files for Connecting to the Cluster

Configure and import the sample project.

HBase provides a range of sample projects for different scenarios. You can obtain a sample project and import it to the local development environment.

Configuring and Importing Sample Projects

Write program code for a service scenario.

Develop the program based on actual service scenarios and call component APIs to implement required functions.

Developing an Application

Compile and run the application.

Compile and run the program. You can debug and run the program in the local Windows development environment, or compile the program into a JAR package and submit it to a Linux node.

Application Commissioning