部署seatunnel2.3.8参考:部署seatunnel2.3.8-CSDN博客
SeaTunnel Web1.0.1对应的seatunnel2.3.3版本,所以如果要想在SeaTunnel Web1.0.1上能正常跑seatunnel对应版本包,在seatunnel上传的connector-开头的包,都得跟着SeaTunnel Web依赖的版本走,如安装了seatunnel2.3.7但是部署的SeaTunnel Web1.0.1,seatunnel2.3.7得上传connector-jdbc-2.3.3.jar的包。(SeaTunnel Web安装好了,但是数据源选不到,基本就是这个原因)
注:安装SeaTunnel Web1.0.1没区别,步骤全部都一样。
安装的SeaTunnel为2.3.7版本,以下安装基于SeaTunnel已经安装好的场景,SeaTunnel master节点和SeaTunnel web应用在同一台机器上,SeaTunnel为一个master节点一个worker节点。
SeaTunnel路径为:/data/seatunnel/seatunnel-2.3.7
SeaTunnel Web路径为:/data/seatunnel/seatunnel-web-1.0.0
一、下载包
Apache SeaTunnel
上传到服务器上并解压
-- 路径:/data/seatunnel/apache-seatunnel-web-1.0.0-bin.tar.gz
tar -zxvf apache-seatunnel-web-1.0.0-bin.tar.gz-- 修改名字
mv apache-seatunnel-web-1.0.0-bin seatunnel-web-1.0.0
二、配置数据库
1、创建seatunnel-web所需表
数据库和seatunnel-web应用没在同一台机器上
mysql上执行sql脚本,sql脚本路径为:/data/seatunnel/seatunnel-web-1.0.0/script/seatunnel_server_mysql.sql
2、配置数据库连接
vim /data/seatunnel/seatunnel-web-1.0.0/conf/application.yml
三、配置所需seatunnel配置
1、将/seatunnel/config/hazelcast-client.yaml复制到seatunnel web目录下
cp /data/seatunnel/seatunnel-2.3.7/config/hazelcast-client.yaml /data/seatunnel/seatunnel-web-1.0.0/conf
修改hazelcast-client.network.cluster-members配置
2、配置支持的插件信息
将seatunnel中的plugin-mapping.properties复制到seatunnel web目录下
cp /data/seatunnel/seatunnel-2.3.7/connectors/plugin-mapping.properties /data/seatunnel/seatunnel-web-1.0.0/conf
3、如果是seatunnel web1.0.1增加secretKey,否则报错
修改文件为:/data/seatunnel/seatunnel-web-1.0.1/conf/application.yml
注:seatunnel web1.0.1版本的secretKey生成对长度有要求,可以借助网上搜索“HS256在线生成”生成下
错误信息如下"
[GlobalExceptionHandler.logError():83] - JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.
io.jsonwebtoken.security.SignatureException: JWT signature does not match locally computed signature. JWT validity cannot be asserted and should not be trusted.at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:383)at io.jsonwebtoken.impl.DefaultJwtParser.parse(DefaultJwtParser.java:513)at io.jsonwebtoken.impl.DefaultJwtParser.parseClaimsJws(DefaultJwtParser.java:573)at org.apache.seatunnel.app.security.JwtUtils.parseToken(JwtUtils.java:71)at org.apache.seatunnel.app.interceptor.AuthenticationInterceptor.preHandle(AuthenticationInterceptor.java:74)at org.springframework.web.servlet.HandlerExecutionChain.applyPreHandle(HandlerExecutionChain.java:148)at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1062)at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)at org.springframe