+1, It is a good practice to separate the lib directory from the starter
directory.

TaoZex <[email protected]> 于2022年10月21日周五 11:51写道:

> I agree with hailin0's suggestion.
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "dev"
>                                                                 <
> [email protected]&gt;;
> 发送时间:&nbsp;2022年10月21日(星期五) 上午10:58
> 收件人:&nbsp;"dev"<[email protected]&gt;;
>
> 主题:&nbsp;Re: [DISCUSS] Add SPI directory to binary package to support SPI
> plug-in
>
>
>
> I propose that we create `${seatunnel-home}/starter` directory and move the
> engine starter package in this directory.
>
> Using `${seatunnel-home}/lib` as the classpath for all engines, you can
> copy any packages into this directory, e.g spi jar.
>
> Change before:
> apache-seatunnel-incubating-${version}
> - - bin
> - - config
> - - connectors
> - - plugins
> - - licenses
> - - lib
> &nbsp;&nbsp;&nbsp; - - seatunnel-spark-starter.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-flink-starter.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-spark.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-flink.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-flink-sql.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-starter.jar
>
> Change after:
> apache-seatunnel-incubating-${version}
> - - bin
> - - config
> - - connectors
> - - plugins
> - - licenses
> - - starter
> &nbsp;&nbsp;&nbsp; - - seatunnel-spark-starter.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-flink-starter.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-spark.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-flink.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-core-flink-sql.jar
> &nbsp;&nbsp;&nbsp; - - seatunnel-starter.jar
> - - lib
> &nbsp;&nbsp;&nbsp; - - xxx.jar
> &nbsp;&nbsp;&nbsp; - - ......
>
>
>
> Zongwen Li <[email protected]&gt; 于2022年10月19日周三 13:38写道:
>
> &gt; Currently we support format and catalog features, which support SPI,
> &gt; but do not support plug-in loading.
> &gt; At the same time, our existing PluginDiscovery and `plugins` are
> &gt; related to the engine, and the new features are not related to the
> &gt; engine.
> &gt; So I expected to add the `spi` directory to support plugins when
> packaging:
> &gt; "spi/catalog": catalog factory
> &gt; "spi/format": format factory
> &gt; "spi/transform": transform factory
> &gt;
> &gt; --
> &gt; Best Regards,
> &gt;
> &gt; Zongwen Li
> &gt;



-- 

Best Regards

------------

EricJoy2048
[email protected]

Reply via email to