Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-28575] [connectors/hbase] support hbase connector 2.2 write to 2.4.9 #20288

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zinking
Copy link

@zinking zinking commented Jul 16, 2022

support hbase connector 2.2 to write to hbase 2.4.9

What is the purpose of the change

hbase does version checks when creating configurations by default
so this prevents using connector2.2 to write to like hbase 2.4.9. however this restriction is not necessary.

Brief change log

add the hbase configuration to skip the version check

Verifying this change

This change can be verified as follows:
hbase-2.2 connector writes normally to hbase 2.4.9 in my local integration

Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented?

… to hbase 2.4.9

### What is the purpose of the change
hbase does version checks when creating configurations by default
so this prevents using connector2.2 to write to like hbase 2.4.9. however this restriction is not necessary.

### Brief change log
add the hbase configuration to skip the version check

### Verifying this change
This change added tests and can be verified as follows:

hbase-2.2 connector writes normally to hbase 2.4.9 in my local integration

### Does this pull request potentially affect one of the following parts:
Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
The S3 file system connector: no

### Documentation
Does this pull request introduce a new feature? no
If yes, how is the feature documented?
@flinkbot
Copy link
Collaborator

flinkbot commented Jul 16, 2022

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

Copy link
Contributor

@MartijnVisser MartijnVisser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm in favour of having explicit support for versions added. There are no tests which make clear which versions are supported, version support are not or wrongly documented and can cause unexpected results during CI runs.

@zinking
Copy link
Author

zinking commented Jul 18, 2022

well, if the hbase public APIs are relatively stable (which I believe is the case within minor releases). then I guess there are no reasons down stream will be impacted.

@MartijnVisser
Copy link
Contributor

Without testing, you don't know. Yet, when it's broken, people will look at Flink as being the one that's broken.

I'm fully onboard with adding support for other versions of HBase, but not like this. I would even prefer to first externalize the HBase connector (like we're doing with all of them) before adding more features to the connector bundled with Flink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants