This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new af0df5649 Remove FlinkClientTrait duplicate code (#2893)
af0df5649 is described below
commit af0df5649bec45001942fafca5e153695592519a
Author: ChengJie1053 <[email protected]>
AuthorDate: Tue Jul 25 16:42:35 2023 +0800
Remove FlinkClientTrait duplicate code (#2893)
* Remove FlinkClientTrait duplicate code
---
.../org/apache/streampark/flink/client/trait/FlinkClientTrait.scala | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala
b/streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala
index bc10ff072..8eec8118c 100644
---
a/streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala
+++
b/streampark-flink/streampark-flink-client/streampark-flink-client-core/src/main/scala/org/apache/streampark/flink/client/trait/FlinkClientTrait.scala
@@ -359,8 +359,6 @@ trait FlinkClientTrait extends Logger {
logger.info(s"cliArgs: ${cliArgs.mkString(" ")}")
- FlinkRunOption.parse(commandLineOptions, cliArgs, true)
-
val commandLine = FlinkRunOption.parse(commandLineOptions, cliArgs, true)
val activeCommandLine = validateAndGetActiveCommandLine(
@@ -489,8 +487,6 @@ trait FlinkClientTrait extends Logger {
commandLine: CommandLine): Configuration = {
require(activeCustomCommandLine != null, "activeCustomCommandLine must not
be null.")
- val executorConfig = activeCustomCommandLine.toConfiguration(commandLine)
- val customConfiguration = new Configuration(executorConfig)
val configuration = new Configuration()
val flinkDefaultConfiguration = getFlinkDefaultConfiguration(flinkHome)
flinkDefaultConfiguration.keySet.foreach(
@@ -500,7 +496,7 @@ trait FlinkClientTrait extends Logger {
case _ =>
}
})
- configuration.addAll(customConfiguration)
+ configuration.addAll(activeCustomCommandLine.toConfiguration(commandLine))
configuration
}