Updated on 2026-06-29 GMT+08:00

Security Authentication for Interconnecting HBase/Phoenix with Spring Boot

Scenario

Run Spring Boot interface sample code of MRS HBase/Phoenix.

This section applies to MRS 3.3.0 or later.

Prerequisites

You have obtained the configuration file and authentication file required for running the sample project. For details, see Importing and Configuring HBase Sample Projects.

Sample Configuration

  1. In the IntelliJ IDEA development environment, click the springclient.properties file in the src/springboot/hbase-examples/src/main/resources directory and modify the parameters listed in Table 1 as needed:

    Table 1 Configuration parameters

    Parameter

    Definition

    principal

    Username created when you prepare a developer account.

    user.keytab.path

    Path of the user authentication file user.keytab created during developer account preparation.

    krb5.conf.path

    Path of the user authentication file krb5.conf created during developer account preparation.

    conf.path

    Path of the HBase configuration file.

    zookeeper.server.principal

    Principal of the ZooKeeper server, in zookeeper/hadoop.System domain name format. To obtain the system domain name, log in to FusionInsight Manager, choose System > Permission > Domain and Mutual Trust, and view the value of Local Domain.