Skip to content

Commit

Permalink
[fixed] fixed envsetting unload flink-conf.yaml,if not like catalogst…
Browse files Browse the repository at this point in the history
…ore conf will not work
  • Loading branch information
Mrart committed Oct 5, 2024
1 parent cee932b commit f73253b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ private[flink] class FlinkTableInitializer(args: Array[String], apiType: ApiType
}
}

parameter.get(KEY_FLINK_CONF(), null) match {
case null | "" =>
throw new ExceptionInInitializerError(
"[StreamPark] Usage:can't find config,please set \"--flink.conf $conf \" in main arguments")
case conf => builder.withConfiguration(Configuration.fromMap(PropertiesUtils.fromYamlText(DeflaterUtils.unzipString(conf))) status)
}
val buildWith =
(parameter.get(KEY_FLINK_TABLE_CATALOG), parameter.get(KEY_FLINK_TABLE_DATABASE))
buildWith match {
Expand Down

0 comments on commit f73253b

Please sign in to comment.