Skip to content

Commit 0b1b14e

Browse files
authored
Merge pull request #1 from aiven/1.13.2
Added support for 1.13.2
2 parents f8cfe23 + c4f052e commit 0b1b14e

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Apache Flink pure SQL Cli Image
22

3-
This docker-compose provides a Flink SQL CLI image updated to the 1.12.0 version. It's inspired by [this](https://github.com/wuchong/flink-sql-demo/tree/v1.11-EN/sql-client).
3+
This docker-compose provides a Flink SQL CLI image updated to the 1.13.2 version. It's inspired by [this](https://github.com/wuchong/flink-sql-demo/tree/v1.11-EN/sql-client).
44

5-
It makes use of the `flink:1.12.0-scala_2.11` images and of the `ftisiot/flink-sql-client:1.12.0` which is based on the same `flink:1.12.0-scala_2.11` image.
5+
It makes use of the `flink:1.13.2-scala_2.12` images and of the `ftisiot/flink-sql-client:1.13.2` which is based on the same `flink:1.13.2-scala_2.12` image.
66

77
The `sql-client` service maps a `~/kafkacerts/` folder to `/certs` which can be used to create and pass files like Keystores when SSL authentication is needed (e.g. with Apache Kafka).
88

@@ -43,13 +43,13 @@ To Access the SQL CLI, execute
4343
docker ps
4444
```
4545

46-
And take note of the `CONTAINER_ID` related to the `ftisiot/flink_sql_cli:1.12.0` image (`af00e6ef943f` in the below example)
46+
And take note of the `CONTAINER_ID` related to the `ftisiot/flink_sql_cli:1.13.2` image (`af00e6ef943f` in the below example)
4747

4848
```
4949
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5050
af00e6ef943f ftisiot/flink_sql_cli:1.12.0 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 6123/tcp, 8081/tcp flink_sql-client_1
51-
22a459232385 flink:1.12.0-scala_2.11 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 6123/tcp, 8081/tcp flink_taskmanager_1
52-
8b4d5c087800 flink:1.12.0-scala_2.11 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 6123/tcp, 0.0.0.0:8081->8081/tcp flink_jobmanager_1
51+
22a459232385 flink:1.13.2-scala_2.12 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 6123/tcp, 8081/tcp flink_taskmanager_1
52+
8b4d5c087800 flink:1.13.2-scala_2.12 "/docker-entrypoint.…" 2 minutes ago Up 2 minutes 6123/tcp, 0.0.0.0:8081->8081/tcp flink_jobmanager_1
5353
```
5454

5555
Now execute the following code to enter the docker container in interactive mode

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
version: "2.2"
22
services:
33
sql-client:
4-
image: ftisiot/flink_sql_cli:1.12.0
4+
image: ftisiot/flink_sql_cli:1.13.2
55
depends_on:
66
- jobmanager
77
environment:
88
FLINK_JOBMANAGER_HOST: jobmanager
99

1010

1111
jobmanager:
12-
image: flink:1.12.0-scala_2.11
12+
image: flink:1.13.2-scala_2.12
1313
ports:
1414
- "8081:8081"
1515
command: jobmanager
@@ -21,7 +21,7 @@ services:
2121
- ./data/:/data
2222

2323
taskmanager:
24-
image: flink:1.12.0-scala_2.11
24+
image: flink:1.13.2-scala_2.12
2525
depends_on:
2626
- jobmanager
2727
command: taskmanager

sql-client/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,18 @@
2121
#SQL CLI - inspired by https://github.com/wuchong/flink-sql-demo/tree/v1.11-EN/sql-client
2222
###############################################################################
2323

24-
FROM flink:1.12.0-scala_2.11
24+
FROM flink:1.13.2-scala_2.12
2525

2626
# Create CLI lib folder
2727
COPY bin/* /opt/sql-client/
2828
RUN mkdir -p /opt/sql-client/lib
2929

3030
# Download connector libraries
31-
RUN wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-elasticsearch7_2.12/1.12.0/flink-sql-connector-elasticsearch7_2.12-1.12.0.jar; \
32-
wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.11/1.12.0/flink-sql-connector-kafka_2.11-1.12.0.jar; \
33-
wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc_2.11/1.12.0/flink-connector-jdbc_2.11-1.12.0.jar; \
34-
wget -P /opt/sql-client/lib/ https://jdbc.postgresql.org/download/postgresql-42.2.19.jre6.jar;
31+
RUN wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-elasticsearch7_2.12/1.13.2/flink-sql-connector-elasticsearch7_2.12-1.13.2.jar \
32+
wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-connector-kafka_2.11/1.13.2/flink-sql-connector-kafka_2.11-1.13.2.jar; \
33+
wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-connector-jdbc_2.11/1.13.2/flink-connector-jdbc_2.11-1.13.2.jar; \
34+
wget -P /opt/sql-client/lib/ https://jdbc.postgresql.org/download/postgresql-42.2.19.jre6.jar; \
35+
wget -P /opt/sql-client/lib/ https://repo.maven.apache.org/maven2/org/apache/flink/flink-sql-avro-confluent-registry/1.13.2/flink-sql-avro-confluent-registry-1.13.2.jar;
3536

3637
# Copy configuration
3738
COPY conf/* /opt/flink/conf/

0 commit comments

Comments
 (0)