Skip to content

Commit

Permalink
[Bug] [seatunnel-api-flink] Connectors dependencies repeat additions (#…
Browse files Browse the repository at this point in the history
…2207)

* [Bug] [connector-v2] When outputting data to clickhouse, a ClassCastException was encountered

* [Bug] [seatunnel-api-flink] Connectors dependencies repeat additions
  • Loading branch information
gaaraG authored Jul 19, 2022
1 parent 9baed60 commit 48a4272
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ public void registerPlugin(List<URL> pluginPaths) {
jars = new ArrayList<>();
}
jars.addAll(pluginPaths.stream().map(URL::toString).collect(Collectors.toList()));
configuration.set(PipelineOptions.JARS, jars);
configuration.set(PipelineOptions.JARS, jars.stream().distinct().collect(Collectors.toList()));
List<String> classpath = configuration.get(PipelineOptions.CLASSPATHS);
if (classpath == null) {
classpath = new ArrayList<>();
}
classpath.addAll(pluginPaths.stream().map(URL::toString).collect(Collectors.toList()));
configuration.set(PipelineOptions.CLASSPATHS, classpath);
configuration.set(PipelineOptions.CLASSPATHS, classpath.stream().distinct().collect(Collectors.toList()));
}

public StreamExecutionEnvironment getStreamExecutionEnvironment() {
Expand Down

0 comments on commit 48a4272

Please sign in to comment.