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

Update remote jar example #297

Merged
merged 1 commit into from
Feb 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions config/samples/flinkoperator_v1beta1_remotejobjar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ metadata:
spec:
flinkVersion: "1.14"
image:
name: flink:1.14.2
name: flink:1.14.3
envVars:
- name: JAR
value: https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming_2.12/1.14.3/flink-examples-streaming_2.12-1.14.3-WordCount.jar
- name: FLINK_USR_LIB
value: /opt/flink/usrlib
jobManager:
volumes:
- name: usrlib
Expand All @@ -15,8 +20,7 @@ spec:
initContainers:
- name: downloader
image: curlimages/curl
command:
["sh", "-c", "cd /opt/flink/usrlib; curl -O ${FLINK_JOB_JAR_URI}"]
command: ["sh", "-c", "cd $FLINK_USR_LIB; curl -O $JAR"]
resources:
limits:
cpu: 100m
Expand All @@ -33,8 +37,7 @@ spec:
initContainers:
- name: downloader
image: curlimages/curl
command:
["sh", "-c", "cd /opt/flink/usrlib; curl -O ${FLINK_JOB_JAR_URI}"]
command: ["sh", "-c", "cd $FLINK_USR_LIB; curl -O $JAR"]
resources:
limits:
cpu: 100m
Expand All @@ -48,7 +51,6 @@ spec:
afterJobSucceeds: DeleteCluster
afterJobFails: DeleteCluster
afterJobCancelled: DeleteCluster
jarFile: https://repo1.maven.org/maven2/org/apache/flink/flink-examples-streaming_2.12/1.14.3/flink-examples-streaming_2.12-1.14.3-WordCount.jar
className: org.apache.flink.streaming.examples.wordcount.WordCount
args: ["--input", "./README.txt"]
restartPolicy: Never