@@ -71,7 +71,7 @@ public class SimpleHBaseClientDemo {
71
71
}
72
72
```
73
73
74
- The Hbase Configuration in hbase-site.xml:
74
+ The Hbase Configuration in hbase-site.xml for direct-connect mode :
75
75
``` xml
76
76
<configuration >
77
77
<property >
@@ -101,15 +101,52 @@ The Hbase Configuration in hbase-site.xml:
101
101
</configuration >
102
102
```
103
103
104
+ The Hbase Configuration in hbase-site.xml for ODP mode:
105
+ ``` xml
106
+ <configuration >
107
+ <property >
108
+ <name >hbase.client.connection.impl</name >
109
+ <value >com.alipay.oceanbase.hbase.util.OHConnectionImpl</value >
110
+ </property >
111
+ <property >
112
+ <name >hbase.oceanbase.odpMode</name >
113
+ <value >true</value >
114
+ </property >
115
+ <property >
116
+ <name >hbase.oceanbase.fullUserName</name >
117
+ <value ></value >
118
+ </property >
119
+ <property >
120
+ <name >hbase.oceanbase.password</name >
121
+ <value ></value >
122
+ </property >
123
+ <property >
124
+ <name >hbase.oceanbase.odpAddr</name >
125
+ <value ></value >
126
+ </property >
127
+ <property >
128
+ <name >hbase.oceanbase.odpPort</name >
129
+ <value >3307</value >
130
+ </property >
131
+ <property >
132
+ <name >hbase.oceanbase.database</name >
133
+ <value ></value >
134
+ </property >
135
+ </configuration >
136
+ ```
137
+
104
138
** NOTE:**
105
139
* ` hbase.client.connection.impl ` : the implementation of hbase connenction, which must be set to ` com.alipay.oceanbase.hbase.util.OHConnectionImpl `
140
+ * ` hbase.oceanbase.odpMode ` : true indicate is in ODP mode, false(in default) indicate is in direct-connect mode
106
141
* ` hbase.oceanbase.fullUserName ` : the user for accessing obkv, which format is user_name@tenant_name#cluster_name
107
142
* ` hbase.oceanbase.password ` : the password associated with the specified user
108
143
* ` hbase.oceanbase.paramURL ` : which is generated by [ ConfigServer] ( https://ask.oceanbase.com/t/topic/35601923 )
109
144
* ` hbase.oceanbase.sysUserName ` : root@sys or proxy@sys, which have privileges to access routing system view
110
145
* ` hbase.oceanbase.sysPassword ` : the password associated with the specified sys user
111
- * the provided example is in direct-connect mode, if you want to write a demo in ODP mode, please refer to our documentation for further details.
112
- * More example [ TODO]
146
+ * ` hbase.oceanbase.odpAddr ` : the ODP's IP address
147
+ * ` hbase.oceanbase.odpPort ` : the ODP's OBKV port
148
+ * ` hbase.oceanbase.database ` : the target database to operate on
149
+
113
150
## Documentation
114
151
- English [ Coming soon]
115
152
- [ Simplified Chinese (简体中文)] ( https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002022354 )
0 commit comments