OBKV HBase Client is under MulanPSL - 2.0 licence. You can freely copy and use the source code. When you modify or distribute the source code, please obey the MulanPSL - 2.0 licence.
Contributing
Contributions are warmly welcomed and greatly appreciated. Here are a few ways you can contribute:
OBKV HBase Client
OBKV HBase Client is Java Library that can be used to access data from OceanBase by HBase-1.x API or Hbase-2.x API.
Quick start
Create table in the OceanBase database:
Note:
Import the dependency for your maven project:
Note:
The code demo:
The Hbase Configuration in hbase-site.xml for direct-connect mode:
The Hbase Configuration in hbase-site.xml for ODP mode:
NOTE:
hbase.client.connection.impl
: the implementation of hbase connenction, which must be set tocom.alipay.oceanbase.hbase.util.OHConnectionImpl
hbase.oceanbase.odpMode
: true indicate is in ODP mode, false(in default) indicate is in direct-connect modehbase.oceanbase.fullUserName
: the user for accessing obkv, which format is user_name@tenant_name#cluster_namehbase.oceanbase.password
: the password associated with the specified userhbase.oceanbase.paramURL
: which is generated by ConfigServerhbase.oceanbase.sysUserName
: root@sys or proxy@sys, which have privileges to access routing system viewhbase.oceanbase.sysPassword
: the password associated with the specified sys userhbase.oceanbase.odpAddr
: the ODP’s IP addresshbase.oceanbase.odpPort
: the ODP’s OBKV porthbase.oceanbase.database
: the target database to operate onDocumentation
Licencing
OBKV HBase Client is under MulanPSL - 2.0 licence. You can freely copy and use the source code. When you modify or distribute the source code, please obey the MulanPSL - 2.0 licence.
Contributing
Contributions are warmly welcomed and greatly appreciated. Here are a few ways you can contribute:
Support
In case you have any problems when using OceanBase Database, welcome reach out for help: