-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-20043][kinesis] Add flink-sql-connector-kinesis package #14049
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
Conversation
| <filter> | ||
| <artifact>*:*</artifact> | ||
| <excludes> | ||
| <exclude>codegen-resources/**</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These 4 excludes are bundled into the flink-connector-kinesis and result in the shading E2E check failing. I have removed them from here instead of the source connector because I am not 100% sure if they are used at runtime. For instance, it looks like the mime.types is used by S3, but not sure if this is actually used by connector. I think it is safer to leave them in the connector and remove from the SQL bundle, without performing a more thorough investigation. Thoughts?
Other options are:
- Exclude from
flink-connector-kinesis - Leave them in the shaded jar and allow in the E2E test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are used at runtime, I assume that you will
- avoid runtime errors when depending on
flink-connector-kinesis. - hit runtime errors when depending on
flink-sql-connector-kinesisat runtime.
Is there a quick way to make the test pass without excluding those? If not, I maybe we can remove them from both and re-include if people start complaining (seems more consistent).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a quick way to make the test pass without excluding those?
Yes
Maybe we can remove them from both and re-include if people start complaining
Or this
Either option is a quick change, lets see what @twalthr 's preference is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep them in flink-connector-kinesis and fully rely on Maven + manual dependency management there. For the SQL jars we do best effort dependency management to help less skilled users. But they always have the fallback to go to the regular flink-connector-kinesis.
|
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community Automated ChecksLast check on commit 0a068c0 (Thu Nov 12 13:43:54 UTC 2020) Warnings:
Mention the bot in a comment to re-run the automated checks. Review Progress
Please see the Pull Request Review Guide for a full explanation of the review process. DetailsThe Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required Bot commandsThe @flinkbot bot supports the following commands:
|
d299a79 to
a79cc4c
Compare
aalexandrov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Changes of the *.md files should be mirrored in the (currently untranslated) corresponding *.zh.md files of the Chinese documentation.
| <filter> | ||
| <artifact>*:*</artifact> | ||
| <excludes> | ||
| <exclude>codegen-resources/**</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If they are used at runtime, I assume that you will
- avoid runtime errors when depending on
flink-connector-kinesis. - hit runtime errors when depending on
flink-sql-connector-kinesisat runtime.
Is there a quick way to make the test pass without excluding those? If not, I maybe we can remove them from both and re-include if people start complaining (seems more consistent).
|
@rmetzger do you think it is ok to still merge this for 1.12? We have merged the Kinesis connector but it seems the JAR itself is not ready to be used for the SQL Client. One could argue that this is kind of a feature but it also fixes dependencies and prevents user questions around how to use the Kinesis table sources/sinks. We would avoid confusion if we merge this. |
flink-connectors/flink-sql-connector-kinesis/src/main/resources/META-INF/NOTICE
Outdated
Show resolved
Hide resolved
|
I'm okay with making a feature freeze exception here for the following reasons:
|
|
Thanks, @rmetzger
|
|
@flinkbot run azure |
|
@dannycranmer I just merged in #14036 which adds an autogenerated downloads page for sql connectors. Please rebase your PR and make two changes to your docs:
{% assign connector = site.data.sql-connectors['kinesis'] %}
{% include sql-connector-download-table.html
connector=connector
%} |
1a9e4dc to
70bd4cf
Compare
|
Rebased and updated as per @sjwiesman comment. |
twalthr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment from my side. I will merge this on Monday if there are no further objections.
|
@dannycranmer I was about to merge this PR but running the SQL client test script locally failed. It seems the JAR still contains the dependencies for |
|
@twalthr that is odd, it passes on my machine and I can see the reactive streams lib shaded and relocated correctly. Maybe : The shade pattern looks correct on the connector project. Maybe you need to rebuild the connector jar locally? |
|
I will recheck. But actually I build the entire Flink dist on my machine. |
…QL client. Updated E2E test and documentation to reflect changes
…duced in FLINK-20093
…ild from flink-connectors pom
5020d99 to
fff8b43
Compare
|
As discussed, the issue was when building from the parent project ( |
What is the purpose of the change
Add an uber jar client library for Kinesis connector to be used with SQL client.
Brief change log
flink-sql-connector-kinesisVerifying this change
./sql-client.sh embedded --jar flink-sql-connector-kinesis_2.11-1.12-SNAPSHOT.jarflink-sql-client-testto include Kinesis clienttest_sql_client.shto verify the shading of Kinesis jarDoes this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation