You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@seatunnel.apache.org by TaoZex <26...@qq.com.INVALID> on 2022/10/21 03:51:04 UTC

RE: [DISCUSS] Add SPI directory to binary package to support SPI plug-in

I agree with hailin0's suggestion.


------------------&nbsp;原始邮件&nbsp;------------------
发件人:                                                                                                                        "dev"                                                                                    <wanghailin@apache.org&gt;;
发送时间:&nbsp;2022年10月21日(星期五) 上午10:58
收件人:&nbsp;"dev"<dev@seatunnel.apache.org&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 <zongwen@apache.org&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;

Re: [DISCUSS] Add SPI directory to binary package to support SPI plug-in

Posted by JUN GAO <ga...@apache.org>.
+1, It is a good practice to separate the lib directory from the starter
directory.

TaoZex <26...@qq.com.invalid> 于2022年10月21日周五 11:51写道:

> I agree with hailin0's suggestion.
>
>
> ------------------&nbsp;原始邮件&nbsp;------------------
> 发件人:
>                                                   "dev"
>                                                                 <
> wanghailin@apache.org&gt;;
> 发送时间:&nbsp;2022年10月21日(星期五) 上午10:58
> 收件人:&nbsp;"dev"<dev@seatunnel.apache.org&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 <zongwen@apache.org&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
gaojun2048@gmail.com