Skip to content

Commit

Permalink
fix: patch Flink 1.19+ correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiqian committed Aug 22, 2024
1 parent 2be57e4 commit 5e5457c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/mig-test/misc/patch_flink_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
execution.checkpointing.interval: 300
EXTRACONF

File.write("#{FLINK_HOME}/conf/flink-conf.yaml", EXTRA_CONF, mode: 'a+')
if File.file?("#{FLINK_HOME}/conf/flink-conf.yaml")
File.write("#{FLINK_HOME}/conf/flink-conf.yaml", EXTRA_CONF, mode: 'a+')
else
File.write("#{FLINK_HOME}/conf/config.yaml", EXTRA_CONF, mode: 'a+')
end

# MySQL connector is not provided
`wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.27/mysql-connector-java-8.0.27.jar -O #{FLINK_HOME}/lib/mysql-connector-java-8.0.27.jar`

0 comments on commit 5e5457c

Please sign in to comment.