OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

A unified distributed database ready for your transactional, analytical, and AI workloads.

DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Database

KV - V4.3.5

  • OBKV overview
  • Architecture
  • OBKV-Table
    • Introduction to OBKV-Table
      • Overview
      • OBKV-Table operation types
      • Core features of OBKV-Table
      • Differences between replace and insert_or_update
      • Supported value types
      • OBKV-Table data models
    • Use the OBKV-Table Java client
      • Java development guide for OBKV-Table
      • Prepare for development with OBKV-Table
      • Use the OBKV-Table Java client to connect to a cluster
      • Set client parameters
      • Supported client interfaces
      • Use the OBKV-Table Java client
    • Use the OBKV-Table GO client
      • Use the OBKV-Table Go client to connect to a cluster
      • Overview of the Go client
      • Individual API operations
      • Batch operations
      • About queries
      • Aggregation API
      • Filters
    • FAQ
  • OBKV-HBase
    • Overview
    • OBKV-HBase core features
    • Compatibility with HBase
    • Deployment
    • Application development with OBKV-HBase
      • Overview of OBKV-HBase application development
      • Data model
      • Data model design
      • Connect to a cluster using the OBKV-HBase client
      • Migrate HBase business code to OBKV-HBase
      • Data operation examples
      • Delete expired data
    • OBKV-HBase migration guide
    • OBKV-HBase management
      • Overview
      • High availability
      • Security and permissions
      • Monitoring metrics
    • Performance test
    • OBKV-HBase integrations
      • Flink
        • Synchronize data to OBKV-HBase by using Flink
    • Views
    • FAQ

Download PDF

OBKV overview Architecture Overview OBKV-Table operation types Core features of OBKV-Table Differences between replace and insert_or_update Supported value types OBKV-Table data models Java development guide for OBKV-Table Prepare for development with OBKV-Table Use the OBKV-Table Java client to connect to a cluster Set client parameters Supported client interfaces Use the OBKV-Table Java client Use the OBKV-Table Go client to connect to a cluster Overview of the Go client Individual API operations Batch operations About queries Aggregation API Filters FAQ Overview OBKV-HBase core features Compatibility with HBase Deployment Overview of OBKV-HBase application development Data model Data model design Connect to a cluster using the OBKV-HBase client Migrate HBase business code to OBKV-HBase Data operation examples Delete expired data OBKV-HBase migration guide Overview High availability Security and permissions Monitoring metrics Performance test Views FAQ
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Database
  3. KV
  4. V4.3.5
iconOceanBase Database
KV - V 4.3.5
SQL
KV
  • V 4.3.5

Migrate HBase business code to OBKV-HBase

Last Updated:2025-12-17 07:17:30  Updated
share
What is on this page
Preparations
Migrate code
Add OBKV-HBase client dependencies
Set OBKV-HBase client connection parameters

folded

share

OBKV-HBase is compatible with HBase 1.x and 2.x versions. This topic explains how to migrate your business code from the HBase client to the OBKV-HBase client by updating only the configuration files.

Preparations

If you have not performed schema migration using OceanBase Migration Service (OMS), and the corresponding tables from your original client code have not been created in OBServer, see Connect to the cluster using the OBKV-HBase Java client to create the required OBKV-HBase tables.

Migrate code

Add OBKV-HBase client dependencies

Add the OBKV-HBase client dependency to your project's pom.xml file. If you previously used HBase 1.x, select the matching OBKV-HBase 1.x.x version. If you used HBase 2.x, use the OBKV-HBase 2.x.x version.

 <dependencies>
    <dependency>
        <groupId>com.oceanbase</groupId>
        <artifactId>obkv-hbase-client</artifactId>
        <version>2.1.0</version>
    </dependency>
</dependencies>

Notice

  • Try to use the latest version of the jar package, as older versions may not support newer server releases.
  • The version number shown here may not be the latest. Check the [central repository](https://mvnrepository.com/artifact/com.oceanbase/obkv-hbase-client) for the most recent OBKV-HBase release and update the version number accordingly.

Set OBKV-HBase client connection parameters

In this step, you need to set the connection type to OHConnectionImpl in the OBKV-HBase client configuration file and add the relevant OBKV-HBase connection parameters:

  • If your current HBase client uses org.apache.hadoop.hbase.HBaseConfiguration, update the hbase-site.xml configuration file.
  • If your current HBase client uses org.apache.hadoop.conf.Configuration, update the core-site.xml configuration file.

Change the connection type

Change the HBase connection implementation to OHConnectionImpl. All connections created through ConnectionFactory will then use OHConnectionImpl.

<configuration>
    <property>
      <name>hbase.client.connection.impl</name>
      <value>com.alipay.oceanbase.hbase.util.OHConnectionImpl</value>
    </property>
</configuration>

Add OBKV-HBase client connection parameters

Next, add the OBKV-HBase connection parameters to initialize OHConnectionImpl. The following example uses the ODP mode (the parameters required for direct connection mode are different). For details about these parameters, see the sections "Cloud mode configuration (public cloud)" and "Direct connection mode configuration (on-premises deployment)" in Connect to the cluster using the OBKV-HBase client.

<configuration>
    <property>
        <name>hbase.oceanbase.fullUserName</name>
        <value>your user name</value>
    </property>
    <property>
        <name>hbase.oceanbase.password</name>
        <value>your user password</value>
    </property>
    <property>
        <name>hbase.oceanbase.odpAddr</name>
        <value>your odp addr</value>
    </property>
    <property>
        <name>hbase.oceanbase.odpPort</name>
        <value>3307</value>
    </property>
    <property>
        <name>hbase.oceanbase.odpMode</name>
        <value>true</value>
    </property>
    <property>
        <name>hbase.oceanbase.database</name>
        <value>your database</value>
    </property>
</configuration>

Previous topic

Connect to a cluster using the OBKV-HBase client
Last

Next topic

Data operation examples
Next
What is on this page
Preparations
Migrate code
Add OBKV-HBase client dependencies
Set OBKV-HBase client connection parameters