seo网站页面优化,深圳网站建设 罗湖,淘客网站开发教程,做实体店优惠券的网站启动环境 需要提前准备的(只提供作者试过且可行的方案) window11ubuntu20(wsl2) window11内置ubuntu的方式自行百度#xff0c;此处不做陈述jdk8mysql8navicatvscode
环境准备不做过多陈述#xff0c;以下是正式的安装启动步骤
SeaTunnel 2.3.3
资源准备
第一步: 创建文件…启动环境 需要提前准备的(只提供作者试过且可行的方案) window11ubuntu20(wsl2) window11内置ubuntu的方式自行百度此处不做陈述jdk8mysql8navicatvscode
环境准备不做过多陈述以下是正式的安装启动步骤
SeaTunnel 2.3.3
资源准备
第一步: 创建文件夹 (话不多说直接上图按照红框所示创建即可) 2.第二步 下载二进制包放到backend文件夹下
链接: apache-seatunnel-2.3.3-bin.tar.gz
SeaTunnel 服务端安装
备份 install-plugin.sh
install-plugin.sh 复制一份更名为install-plugin.sh.bak
更改${SEATUNNEL_HOME}/mvnw 为mvn 项目根目录执行 sh bin/ install-plugin.sh 安装依赖 移动connectors/seatunnel下的所有jar到 lib目录 下载datasource
这里稍微带一下源码的东西在源码里有下载datasource的脚本复制到bin下如下图所示 我把脚本内容写在下面可以自己创建
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the License); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##This script is used to download the connector plug-ins required during the running process.
#All are downloaded by default. You can also choose what you need.
#You only need to configure the plug-in name in config/plugin_config.# get seatunnel web home
SEATUNNEL_WEB_HOME$(cd $(dirname $0);cd ../;pwd)
DATASOURCE_DIR${SEATUNNEL_WEB_HOME}/datasource# If you don’t want to download a certain data source, you can delete the element below
datasource_list(datasource-plugins-apidatasource-elasticsearchdatasource-hivedatasource-jdbc-clickhousedatasource-jdbc-hivedatasource-jdbc-mysqldatasource-jdbc-oracledatasource-jdbc-postgresqldatasource-jdbc-redshiftdatasource-jdbc-sqlserverdatasource-jdbc-starrocksdatasource-jdbc-tidbdatasource-kafkadatasource-mysql-cdcdatasource-s3datasource-sqlserver-cdcdatasource-starrocksdatasource-mongodb
)# the datasource default version is 1.0.0, you can also choose a custom version. eg: 1.1.2: sh install-datasource.sh 2.1.2
version1.0.0if [ -n $1 ]; thenversion$1
fiecho Downloading SeaTunnel Web Datasource lib, usage version is ${version}# create the datasource directory
if [ ! -d $DATASOURCE_DIR ];thenmkdir -p $DATASOURCE_DIRecho Created datasource directory.
fifor i in ${datasource_list[]}
doecho $iecho Downloading datasource: $i$SEATUNNEL_WEB_HOME/mvnw dependency:get -DgroupIdorg.apache.seatunnel -DartifactId$i -Dversion$version -Ddest$DATASOURCE_DIR
done
替换脚本的下载路劲下载到之前创建的datasource目录中去
具体路径自定只要能找到就行然后同理执行这个脚本
将下载的jar包复制到lib中去 然后最后我们来一个简单的全量同步
创建一个任务文件
如图 连通性自检哈
执行任务文件
./bin/seatunnel.sh --config config/txz/mysql_demo_1.config.template -e local最后观察数据库同步情况即可