apache / seatunnel

SeaTunnel is a next-generation super high-performance, distributed, massive data integration tool.
https://seatunnel.apache.org/
Apache License 2.0
7.79k stars 1.74k forks source link

[Bug] [plugin-discovery] Jar found with same prefix #7271

Closed corgy-w closed 1 month ago

corgy-w commented 1 month ago

Search before asking

What happened

When the project began loading the plugin, we encountered multiple jars during the search due to custom development(eg ⬇️:plugin-mapping.properties). I propose using a similarity algorithm to match the most appropriate jar. Please review the details, and I will submit the corresponding pr.

SeaTunnel Version

2.3.3 When I raised this issue, I found that 2.3.5 had already avoided this by throwing IllegalArgumentException

SeaTunnel Config

plugin-mapping.properties
---
seatunnel.source.HttpBase = connector-http
seatunnel.sink.HttpBase = connector-http
seatunnel.source.HttpJira = connector-http-jira
seatunnel.sink.HttpJira = connector-http-jira
seatunnel.source.Kafka = connector-kafka
seatunnel.sink.Kafka = connector-kafka
seatunnel.source.Kafka-Alcs = connector-kafka-alcs
seatunnel.sink.Kafka-Alcs = connector-kafka-alcs
seatunnel.source.Kafka-Blcs = connector-kafka-blcs
seatunnel.sink.Kafka-Blcs = connector-kafka-blcs
---

Running Command

-

Error Exception

-

Zeta or Flink or Spark Version

No response

Java or Scala Version

No response

Screenshots

image

Are you willing to submit PR?

Code of Conduct

Hisoka-X commented 1 month ago

Yes, the current jar package path positioning is not perfect.