-
Notifications
You must be signed in to change notification settings - Fork 10
chore: upgrade Flink to 2.2.0 and CP to 8.2.0 in Docker deployment #136
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,11 +1,10 @@ | ||||||||||||||||||||||||||||||||
| FROM flink:1.19.1-scala_2.12-java11 | ||||||||||||||||||||||||||||||||
| FROM flink:2.2.0-scala_2.12-java17 | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| LABEL io.confluent.docker=true | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| # Download connector libraries | ||||||||||||||||||||||||||||||||
| RUN wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/3.2.0-1.19/flink-sql-connector-kafka-3.2.0-1.19.jar; \ | ||||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/1.19.1/flink-json-1.19.1.jar; \ | ||||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/1.19.1/flink-sql-avro-confluent-registry-1.19.1.jar; | ||||||||||||||||||||||||||||||||
| RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar; \ | ||||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | ||||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; | ||||||||||||||||||||||||||||||||
|
Comment on lines
+6
to
+7
|
||||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; | |
| wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar.sha512; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar.sha512; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar.sha512; \ | |
| cd /opt/flink/lib && \ | |
| sha512sum -c flink-sql-connector-kafka-4.0.1-2.0.jar.sha512 && \ | |
| sha512sum -c flink-json-2.2.0.jar.sha512 && \ | |
| sha512sum -c flink-sql-avro-confluent-registry-2.2.0.jar.sha512 && \ | |
| rm -f \ | |
| flink-sql-connector-kafka-4.0.1-2.0.jar.sha512 \ | |
| flink-json-2.2.0.jar.sha512 \ | |
| flink-sql-avro-confluent-registry-2.2.0.jar.sha512 |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,23 +1,13 @@ | ||||||||||||||||||||||||||||||
| FROM flink:1.19.1-scala_2.12-java11 | ||||||||||||||||||||||||||||||
| FROM flink:2.2.0-scala_2.12-java17 | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| LABEL io.confluent.docker=true | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # Create CLI lib folder | ||||||||||||||||||||||||||||||
| RUN mkdir -p /opt/sql-client/lib | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # Download connector libraries | ||||||||||||||||||||||||||||||
| RUN wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/3.2.0-1.19/flink-sql-connector-kafka-3.2.0-1.19.jar; \ | ||||||||||||||||||||||||||||||
| wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/1.19.1/flink-json-1.19.1.jar; \ | ||||||||||||||||||||||||||||||
| wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/1.19.1/flink-sql-avro-confluent-registry-1.19.1.jar; | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| # Also copy to Flink lib so that, e.g., other catalog types can be used if desired | ||||||||||||||||||||||||||||||
| RUN cp /opt/sql-client/lib/* /opt/flink/lib/ | ||||||||||||||||||||||||||||||
| RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar; \ | ||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | ||||||||||||||||||||||||||||||
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; | ||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+7
|
||||||||||||||||||||||||||||||
| RUN wget -P /opt/flink/lib https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; | |
| RUN set -eux; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka/4.0.1-2.0/flink-sql-connector-kafka-4.0.1-2.0.jar.sha512; \ | |
| (cd /opt/flink/lib && sha512sum -c flink-sql-connector-kafka-4.0.1-2.0.jar.sha512); \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-json/2.2.0/flink-json-2.2.0.jar.sha512; \ | |
| (cd /opt/flink/lib && sha512sum -c flink-json-2.2.0.jar.sha512); \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar; \ | |
| wget -P /opt/flink/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/2.2.0/flink-sql-avro-confluent-registry-2.2.0.jar.sha512; \ | |
| (cd /opt/flink/lib && sha512sum -c flink-sql-avro-confluent-registry-2.2.0.jar.sha512); \ | |
| rm -f /opt/flink/lib/*.sha512 |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,30 @@ | ||||||||
| blob: | ||||||||
| server: | ||||||||
| port: '6124' | ||||||||
| taskmanager: | ||||||||
| memory: | ||||||||
| process: | ||||||||
| size: 1728m | ||||||||
| bind-host: 0.0.0.0 | ||||||||
| numberOfTaskSlots: '10' | ||||||||
| jobmanager: | ||||||||
| execution: | ||||||||
| failover-strategy: region | ||||||||
| rpc: | ||||||||
| address: flink-jobmanager | ||||||||
| port: 6123 | ||||||||
| memory: | ||||||||
| process: | ||||||||
| size: 1600m | ||||||||
| bind-host: 0.0.0.0 | ||||||||
| query: | ||||||||
| server: | ||||||||
| port: '6125' | ||||||||
| parallelism: | ||||||||
| default: 1 | ||||||||
| rest: | ||||||||
| address: flink-jobmanager | ||||||||
|
||||||||
| address: flink-jobmanager | |
| address: flink-jobmanager | |
| bind-address: 0.0.0.0 |
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.
FLINK_PROPERTIEShere duplicates settings that appear to be baked into the image via/opt/flink/conf/config.yaml(e.g.,jobmanager.rpc.addressandtaskmanager.numberOfTaskSlots). Keeping the same config in both places increases the chance they drift; consider relying on a single source of truth (either the config file or container-specificFLINK_PROPERTIES) or adding a comment explaining why overrides are needed.