Skip to content

Commit ad35526

Browse files
authored
[FLINK-38222] Bump HBase version from 2.2 to 2.6 (#56)
1 parent ca5a4aa commit ad35526

File tree

40 files changed

+665
-443
lines changed

40 files changed

+665
-443
lines changed

.github/workflows/push_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
compile_and_test:
2929
strategy:
3030
matrix:
31-
flink: [ 1.20.0 ]
32-
jdk: [ '8, 11' ]
31+
flink: [ 1.20.2 ]
32+
jdk: [ '8, 11, 17' ]
3333
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
3434
with:
3535
flink_version: ${{ matrix.flink }}

.github/workflows/weekly.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,17 @@ jobs:
3030
strategy:
3131
matrix:
3232
flink_branches: [{
33-
flink: 1.20-SNAPSHOT,
33+
flink: 1.20.2,
3434
branch: main
3535
}, {
36-
flink: 1.19.1,
37-
branch: v4.0
38-
}, {
39-
flink: 1.18.1,
36+
flink: 1.19.3,
4037
branch: v4.0
4138
}]
4239
uses: apache/flink-connector-shared-utils/.github/workflows/ci.yml@ci_utils
4340
with:
4441
flink_version: ${{ matrix.flink_branches.flink }}
4542
connector_branch: ${{ matrix.flink_branches.branch }}
46-
jdk_version: ${{ matrix.flink_branches.jdk || '8, 11' }}
43+
jdk_version: ${{ matrix.flink_branches.jdk || '8, 11, 17' }}
4744
run_dependency_convergence: false
4845
timeout_global: 120
4946
timeout_test: 80

docs/content.zh/docs/connectors/table/hbase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ CREATE TABLE hTable (
5656
family3 ROW<q4 DOUBLE, q5 BOOLEAN, q6 STRING>,
5757
PRIMARY KEY (rowkey) NOT ENFORCED
5858
) WITH (
59-
'connector' = 'hbase-2.2',
59+
'connector' = 'hbase-2.6',
6060
'table-name' = 'mytable',
6161
'zookeeper.quorum' = 'localhost:2181'
6262
);
@@ -129,7 +129,7 @@ ON myTopic.key = hTable.rowkey;
129129
<td>String</td>
130130
<td>指定使用的连接器, 支持的值如下 :
131131
<ul>
132-
<li><code>hbase-2.2</code>: 连接 HBase 2.2.x 集群</li>
132+
<li><code>hbase-2.6</code>: 连接 HBase 2.6.x 集群</li>
133133
</ul>
134134
</td>
135135
</tr>
@@ -204,7 +204,7 @@ ON myTopic.key = hTable.rowkey;
204204
<td>可选</td>
205205
<td style="word-wrap: break-word;">false</td>
206206
<td>Boolean</td>
207-
<td>是否启用异步查找。如果为真,查找将是异步的。注意:异步方式只支持 hbase-2.2 连接器</td>
207+
<td>是否启用异步查找。如果为真,查找将是异步的。注意:异步方式只支持 hbase-2.6 连接器</td>
208208
</tr>
209209
<tr>
210210
<td><h5>lookup.cache</h5></td>

docs/content/docs/connectors/table/hbase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ CREATE TABLE hTable (
5858
family3 ROW<q4 DOUBLE, q5 BOOLEAN, q6 STRING>,
5959
PRIMARY KEY (rowkey) NOT ENFORCED
6060
) WITH (
61-
'connector' = 'hbase-2.2',
61+
'connector' = 'hbase-2.6',
6262
'table-name' = 'mytable',
6363
'zookeeper.quorum' = 'localhost:2181'
6464
);
@@ -133,7 +133,7 @@ Connector Options
133133
<td>String</td>
134134
<td>Specify what connector to use, valid values are:
135135
<ul>
136-
<li><code>hbase-2.2</code>: connect to HBase 2.2.x cluster</li>
136+
<li><code>hbase-2.6</code>: connect to HBase 2.6.x cluster</li>
137137
</ul>
138138
</td>
139139
</tr>
@@ -225,7 +225,7 @@ Connector Options
225225
<td>no</td>
226226
<td style="word-wrap: break-word;">false</td>
227227
<td>Boolean</td>
228-
<td>Whether async lookup are enabled. If true, the lookup will be async. Note, async only supports hbase-2.2 connector.</td>
228+
<td>Whether async lookup are enabled. If true, the lookup will be async. Note, async only supports hbase-2.6 connector.</td>
229229
</tr>
230230
<tr>
231231
<td><h5>lookup.cache</h5></td>

flink-connector-hbase-2.2/pom.xml renamed to flink-connector-hbase-2.6/pom.xml

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ under the License.
2828
<version>4.0-SNAPSHOT</version>
2929
</parent>
3030

31-
<artifactId>flink-connector-hbase-2.2</artifactId>
32-
<name>Flink : Connectors : HBase 2.2</name>
31+
<artifactId>flink-connector-hbase-2.6</artifactId>
32+
<name>Flink : Connectors : HBase 2.6</name>
3333
<packaging>jar</packaging>
3434

3535
<dependencies>
@@ -91,6 +91,14 @@ under the License.
9191
<groupId>net.minidev</groupId>
9292
<artifactId>json-smart</artifactId>
9393
</exclusion>
94+
<exclusion>
95+
<artifactId>servlet-api</artifactId>
96+
<groupId>javax.servlet</groupId>
97+
</exclusion>
98+
<exclusion>
99+
<artifactId>logback-classic</artifactId>
100+
<groupId>ch.qos.logback</groupId>
101+
</exclusion>
94102
</exclusions>
95103
</dependency>
96104

@@ -171,18 +179,25 @@ under the License.
171179
</exclusions>
172180
</dependency>
173181

174-
<dependency>
175-
<groupId>io.netty</groupId>
176-
<artifactId>netty-all</artifactId>
177-
</dependency>
178-
179182
<!-- Tests -->
180183
<dependency>
181184
<groupId>junit</groupId>
182185
<artifactId>junit</artifactId>
183186
<scope>test</scope>
184187
</dependency>
185188

189+
<dependency>
190+
<groupId>org.mockito</groupId>
191+
<artifactId>mockito-core</artifactId>
192+
<scope>test</scope>
193+
<exclusions>
194+
<exclusion>
195+
<groupId>org.objenesis</groupId>
196+
<artifactId>objenesis</artifactId>
197+
</exclusion>
198+
</exclusions>
199+
</dependency>
200+
186201
<dependency>
187202
<groupId>org.apache.flink</groupId>
188203
<artifactId>flink-connector-hbase-base</artifactId>
@@ -270,6 +285,18 @@ under the License.
270285
<groupId>org.javassist</groupId>
271286
<artifactId>javassist</artifactId>
272287
</exclusion>
288+
<exclusion>
289+
<groupId>org.slf4j</groupId>
290+
<artifactId>slf4j-reload4j</artifactId>
291+
</exclusion>
292+
<exclusion>
293+
<groupId>com.google.errorprone</groupId>
294+
<artifactId>error_prone_annotations</artifactId>
295+
</exclusion>
296+
<exclusion>
297+
<groupId>javax.xml.bind</groupId>
298+
<artifactId>jaxb-api</artifactId>
299+
</exclusion>
273300
</exclusions>
274301
</dependency>
275302

@@ -362,13 +389,29 @@ under the License.
362389
<groupId>org.apache.hadoop</groupId>
363390
<artifactId>hadoop-minicluster</artifactId>
364391
<scope>test</scope>
392+
<exclusions>
393+
<exclusion>
394+
<artifactId>servlet-api</artifactId>
395+
<groupId>javax.servlet</groupId>
396+
</exclusion>
397+
</exclusions>
365398
</dependency>
366399

367400
<dependency>
368401
<groupId>org.apache.hadoop</groupId>
369402
<artifactId>hadoop-hdfs</artifactId>
370403
<type>test-jar</type>
371404
<scope>test</scope>
405+
<exclusions>
406+
<exclusion>
407+
<artifactId>servlet-api</artifactId>
408+
<groupId>javax.servlet</groupId>
409+
</exclusion>
410+
<exclusion>
411+
<groupId>commons-cli</groupId>
412+
<artifactId>commons-cli</artifactId>
413+
</exclusion>
414+
</exclusions>
372415
</dependency>
373416

374417
<!-- ArchUit test dependencies -->
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
public class HBase2DynamicTableFactory
6767
implements DynamicTableSourceFactory, DynamicTableSinkFactory {
6868

69-
private static final String IDENTIFIER = "hbase-2.2";
69+
private static final String IDENTIFIER = "hbase-2.6";
7070

7171
@Override
7272
public DynamicTableSource createDynamicTableSource(Context context) {

0 commit comments

Comments
 (0)