当前位置: 首页 > news >正文

寿光shengkun网站建设长沙做网络推广公司的

寿光shengkun网站建设,长沙做网络推广公司的,wordpress 文章保存在哪里,广西建设教育协会网站CentOs7.x安装部署SeaTunnelWeb遇到的坑 文章目录 1. 环境2. SeaTunnel安装部署2.1下载安装包2.2 设置环境变量2.3 安装连接器插件2.4 拷贝jar包到lib下2.5 启动命令2.6 执行官方client提交任务demo 3. SeaTunnel-Web安装部署3.1 下载安装包3.2 初始化数据库脚本或修改配置appl…

CentOs7.x安装部署SeaTunnelWeb遇到的坑

文章目录

  • 1. 环境
  • 2. SeaTunnel安装部署
    • 2.1下载安装包
    • 2.2 设置环境变量
    • 2.3 安装连接器插件
    • 2.4 拷贝jar包到lib下
    • 2.5 启动命令
    • 2.6 执行官方client提交任务demo
  • 3. SeaTunnel-Web安装部署
    • 3.1 下载安装包
    • 3.2 初始化数据库脚本或修改配置application.yml中的数据库连接信息
      • 3.2.1 不使用它的初始化脚本自动创建
      • 3.2.2 使用脚本初始化数据库
    • 3.3 修改端口与数据源
    • 3.4 两个文件拷贝配置
    • 3.5 拷贝jar到lib下
    • 3.6 启动
    • 3.7 访问首页
    • 3.8 执行myslq-jdbc-->mysl-jdbc的单表数据同步
  • 4. 总结

1. 环境

  采用的是虚拟机上安装CentOs7.x,安装java15环境,安装mysql8.0.28,这两步骤省略,之前的文章里面有讲,属于基础环境配置,也比较简单,说明我用的是一台CentOs7.x的虚拟机实例,都安装在一台上面,需要开放8081、3306和5801的防火墙,不然会网络访问不到。

2. SeaTunnel安装部署

2.1下载安装包

export version="2.3.3"
wget "https://archive.apache.org/dist/seatunnel/${version}/apache-seatunnel-${version}-bin.tar.gz"
tar -xzvf "apache-seatunnel-${version}-bin.tar.gz"

2.2 设置环境变量

vi /etc/profile.d/seatunnel.sh
# 新增如下变量
export SEATUNNEL_HOME=/root/apache-seatunnel-2.3.3 #这里设置的是seatunnel的解压目录即可
export PATH=$PATH:$SEATUNNEL_HOME/bin

然后执行source /etc/profile

2.3 安装连接器插件

  进入/root/apache-seatunnel-2.3.3路径下执行安装连接器插件

图片

sh bin/install-plugin.sh 2.3.3

  可以修改/root/apache-seatunnel-2.3.3/connectors下的plugin-mapping.properties文件,根据需要加入连接器插件,把不需要的连接器插件名称删除留下需要的即可,然后执行上面的安装命令,由于我没有修改这个文件,默认安装的是全部的连接器插件,所以需要一点时间,下载速度取决于网速。

2.4 拷贝jar包到lib下

图片

2.5 启动命令

  进入/root/apache-seatunnel-2.3.3路径下执行启动命令:

sh bin/seatunnel-cluster.sh -d  -DJvmOption="-Xms1G -Xmx1G"
或者
nohup sh bin/seatunnel-cluster.sh 2>&1 &

  jps查看seatunnel的进程如下:

图片

  查看logs下的日志均正常输出没有报错,说明启动成功,然后执行下面的官方demo没有报错,说明seatunnel启动是正常的。

2.6 执行官方client提交任务demo

  进入/root/apache-seatunnel-2.3.3路径下执行启动命令:

$SEATUNNEL_HOME/bin/seatunnel.sh --config $SEATUNNEL_HOME/config/v2.batch.config.template

  该命令来自于官网,执行结果如下:

[root@es1 apache-seatunnel-2.3.3]# $SEATUNNEL_HOME/bin/seatunnel.sh --config $SEATUNNEL_HOME/config/v2.batch.config.template
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Loading configuration '/root/apache-seatunnel-2.3.3/config/seatunnel.yaml' from System property 'seatunnel.config'
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Using configuration file at /root/apache-seatunnel-2.3.3/config/seatunnel.yaml
1219, 2023 12:11:20 上午 org.apache.seatunnel.engine.common.config.SeaTunnelConfig
信息: seatunnel.home is /root/apache-seatunnel-2.3.3
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Loading configuration '/root/apache-seatunnel-2.3.3/config/hazelcast.yaml' from System property 'hazelcast.config'
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Using configuration file at /root/apache-seatunnel-2.3.3/config/hazelcast.yaml
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Loading configuration '/root/apache-seatunnel-2.3.3/config/hazelcast-client.yaml' from System property 'hazelcast.client.config'
1219, 2023 12:11:20 上午 com.hazelcast.internal.config.AbstractConfigLocator
信息: Using configuration file at /root/apache-seatunnel-2.3.3/config/hazelcast-client.yaml
2023-12-19 00:11:21,149 INFO  com.hazelcast.client.impl.spi.ClientInvocationService - hz.client_1 [seatunnel] [5.1] Running with 2 response threads, dynamic=true
2023-12-19 00:11:21,233 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is STARTING
2023-12-19 00:11:21,234 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is STARTED
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.hazelcast.internal.networking.nio.SelectorOptimizer (file:/root/apache-seatunnel-2.3.3/starter/seatunnel-starter.jar) to field sun.nio.ch.SelectorImpl.selectedKeys
WARNING: Please consider reporting this to the maintainers of com.hazelcast.internal.networking.nio.SelectorOptimizer
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2023-12-19 00:11:21,294 INFO  com.hazelcast.client.impl.connection.ClientConnectionManager - hz.client_1 [seatunnel] [5.1] Trying to connect to cluster: seatunnel
2023-12-19 00:11:21,298 INFO  com.hazelcast.client.impl.connection.ClientConnectionManager - hz.client_1 [seatunnel] [5.1] Trying to connect to [localhost]:5801
2023-12-19 00:11:21,352 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is CLIENT_CONNECTED
2023-12-19 00:11:21,352 INFO  com.hazelcast.client.impl.connection.ClientConnectionManager - hz.client_1 [seatunnel] [5.1] Authenticated with server [localhost]:5801:772efc0a-4c18-4a4b-baa7-b82b9ae4a395, server version: 5.1, local address: /127.0.0.1:36095
2023-12-19 00:11:21,356 INFO  com.hazelcast.internal.diagnostics.Diagnostics - hz.client_1 [seatunnel] [5.1] Diagnostics disabled. To enable add -Dhazelcast.diagnostics.enabled=true to the JVM arguments.
2023-12-19 00:11:21,384 INFO  com.hazelcast.client.impl.spi.ClientClusterService - hz.client_1 [seatunnel] [5.1] Members [1] {Member [localhost]:5801 - 772efc0a-4c18-4a4b-baa7-b82b9ae4a395
}2023-12-19 00:11:21,421 INFO  com.hazelcast.client.impl.statistics.ClientStatisticsService - Client statistics is enabled with period 5 seconds.
2023-12-19 00:11:21,706 INFO  org.apache.seatunnel.engine.client.job.JobExecutionEnvironment - add common jar in plugins :[]
2023-12-19 00:11:21,733 INFO  org.apache.seatunnel.core.starter.utils.ConfigBuilder - Loading config file from path: /root/apache-seatunnel-2.3.3/config/v2.batch.config.template
2023-12-19 00:11:21,799 INFO  org.apache.seatunnel.core.starter.utils.ConfigShadeUtils - Load config shade spi: [base64]
2023-12-19 00:11:21,848 INFO  org.apache.seatunnel.core.starter.utils.ConfigBuilder - Parsed config file: {"env" : {"execution.parallelism" : 2,"job.mode" : "BATCH","checkpoint.interval" : 10000},"source" : [{"schema" : {"fields" : {"name" : "string","age" : "int"}},"row.num" : 16,"parallelism" : 2,"result_table_name" : "fake","plugin_name" : "FakeSource"}],"sink" : [{"plugin_name" : "Console"}]
}2023-12-19 00:11:21,885 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:21,886 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:21,895 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Load SeaTunnelSink Plugin from /root/apache-seatunnel-2.3.3/connectors/seatunnel
2023-12-19 00:11:21,911 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Discovery plugin jar: FakeSource at: file:/root/apache-seatunnel-2.3.3/connectors/seatunnel/connector-fake-2.3.3.jar
2023-12-19 00:11:21,912 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Discovery plugin jar: Console at: file:/root/apache-seatunnel-2.3.3/connectors/seatunnel/connector-console-2.3.3.jar
2023-12-19 00:11:21,915 INFO  org.apache.seatunnel.engine.core.parse.ConfigParserUtil - Currently, incorrect configuration of source_table_name and result_table_name options don't affect job running. In the future we will ban incorrect configurations.
2023-12-19 00:11:21,915 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:21,915 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:21,916 WARN  org.apache.seatunnel.engine.core.parse.ConfigParserUtil - This configuration is not recommended. A source/transform(FakeSource) is configured with 'result_table_name' option value of 'fake', but subsequent transform/sink(Console) is not configured with 'source_table_name' option.
2023-12-19 00:11:21,919 INFO  org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser - start generating all sources.
2023-12-19 00:11:21,919 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:21,953 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Load SeaTunnelSource Plugin from /root/apache-seatunnel-2.3.3/connectors/seatunnel
2023-12-19 00:11:21,970 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Discovery plugin jar: FakeSource at: file:/root/apache-seatunnel-2.3.3/connectors/seatunnel/connector-fake-2.3.3.jar
2023-12-19 00:11:21,974 INFO  org.apache.seatunnel.plugin.discovery.AbstractPluginDiscovery - Load plugin: PluginIdentifier{engineType='seatunnel', pluginType='source', pluginName='FakeSource'} from classpath
2023-12-19 00:11:22,003 INFO  org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser - start generating all transforms.
2023-12-19 00:11:22,003 INFO  org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser - start generating all sinks.
2023-12-19 00:11:22,004 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:22,011 INFO  org.apache.seatunnel.api.configuration.ReadonlyConfig - Config uses fallback configuration key 'plugin_name' instead of key 'factory'
2023-12-19 00:11:22,090 INFO  org.apache.seatunnel.engine.client.job.ClientJobProxy - Start submit job, job id: 789162834679300097, with plugin jar [file:/root/apache-seatunnel-2.3.3/connectors/seatunnel/connector-fake-2.3.3.jar, file:/root/apache-seatunnel-2.3.3/connectors/seatunnel/connector-console-2.3.3.jar]
2023-12-19 00:11:22,893 INFO  org.apache.seatunnel.engine.client.job.ClientJobProxy - Submit job finished, job id: 789162834679300097, job name: SeaTunnel
2023-12-19 00:11:22,956 WARN  org.apache.seatunnel.engine.client.job.JobMetricsRunner - Failed to get job metrics summary, it maybe first-run
2023-12-19 00:11:24,370 INFO  org.apache.seatunnel.engine.client.job.ClientJobProxy - Job (789162834679300097) end with state FINISHED
2023-12-19 00:11:24,416 INFO  org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - 
***********************************************Job Statistic Information
***********************************************
Start Time                : 2023-12-19 00:11:21
End Time                  : 2023-12-19 00:11:24
Total Time(s)             :                   2
Total Read Count          :                  32
Total Write Count         :                  32
Total Failed Count        :                   0
***********************************************2023-12-19 00:11:24,416 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is SHUTTING_DOWN
2023-12-19 00:11:24,422 INFO  com.hazelcast.client.impl.connection.ClientConnectionManager - hz.client_1 [seatunnel] [5.1] Removed connection to endpoint: [localhost]:5801:772efc0a-4c18-4a4b-baa7-b82b9ae4a395, connection: ClientConnection{alive=false, connectionId=1, channel=NioChannel{/127.0.0.1:36095->localhost/127.0.0.1:5801}, remoteAddress=[localhost]:5801, lastReadTime=2023-12-19 00:11:24.411, lastWriteTime=2023-12-19 00:11:24.371, closedTime=2023-12-19 00:11:24.420, connected server version=5.1}
2023-12-19 00:11:24,422 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is CLIENT_DISCONNECTED
2023-12-19 00:11:24,431 INFO  com.hazelcast.core.LifecycleService - hz.client_1 [seatunnel] [5.1] HazelcastClient 5.1 (20220228 - 21f20e7) is SHUTDOWN
2023-12-19 00:11:24,433 INFO  org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - Closed SeaTunnel client......
2023-12-19 00:11:24,433 INFO  org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - Closed metrics executor service ......
2023-12-19 00:11:24,438 INFO  org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand - run shutdown hook because get close signal

3. SeaTunnel-Web安装部署

3.1 下载安装包

  安装包下在地址如下:

https://seatunnel.apache.org/download

  解压:

tar -zxvf apache-seatunnel-web-bin-${project.version}.tar.gz

  解压目录如下:

图片

3.2 初始化数据库脚本或修改配置application.yml中的数据库连接信息

3.2.1 不使用它的初始化脚本自动创建

  事先手动执行好脚本,然后在修改application.yml文件中的数据库连接信息

3.2.2 使用脚本初始化数据库

  首先,设置变量如下:

export HOSTNAME="localhost"
export PORT="3306"
export USERNAME="root"
export PASSWORD="123456"

  然后执行:

sh apache-seatunnel-web-bin-2.3.3/script/init_sql.sh

  如果环境变量有冲突需要改下名字和init_sql.sh中的环境变量的名字,可以加一个前缀可以加上前缀`STWEB_ ,然后把init_sql.sh中上面的那几个环境变量也加上这个前缀即可,然后执行初始化命令

3.3 修改端口与数据源

vim conf/application.yml修改端口号和数据源信息

图片

3.4 两个文件拷贝配置

  需要将apache-seatunnel-2.3.3/config/hazelcast-client和apache-seatunnel-2.3.3/connectors/plugin-mapping.properties文件拷贝到apache-seatunnel-web-bin-2.3.3的conf下。

3.5 拷贝jar到lib下

图片

3.6 启动

sh bin/seatunnel-backend-daemon.sh start

jps查看java进程如下:

图片

  这里有个很坑的地方就是,执行命令如果是进入bin路径执行,访问首页的时候就会有问题,访问首页就会报404的错

sh seatunnel-backend-daemon.sh start

  访问首页报错如下:

图片

3.7 访问首页

  访问ip:8081/ui,此端口为conf/application.yml中配置的端口

http://192.168.1.4:8081/

图片

  登录不上有可能是没有启动mysql数据库

service mysqld start   #使用service启动mysql服务
service mysqld status  #查看MYSQL运行状态
service mysqld stop    #使用service停止mysql服务
service mysqld restart #使用service重启mysql服务
systemctl enable mysqld.service #设置MySQL服务开机自动启动
systemctl is-enabled mysqld.service #确认MySQL服务已经被设置为自动启动

图片

3.8 执行myslq-jdbc–>mysl-jdbc的单表数据同步

  执行是成功的,但是在我的CentOs7.x的虚拟机上我是没有安装hadoop3.1.3的环境,执行看日志是没有报错的,官方说是这个hadoop的环境不是必须的也是有道理的,但是之前的文章在本地调试的时候没有hadoop环境会报错,所以建议需要本地编译构建的小伙伴还是安装一个hadoop,以免执行任务报错。

4. 总结

  本次分享就到此结束了,踩了一些坑,还是请教了官方的大佬才知道的是哪里有问题,希望我的分享对你有所帮助,请一键三连,么么么哒!


文章转载自:
http://tenace.nrpp.cn
http://aviatrix.nrpp.cn
http://cabaret.nrpp.cn
http://kcia.nrpp.cn
http://paperbelly.nrpp.cn
http://plug.nrpp.cn
http://postremogeniture.nrpp.cn
http://semidouble.nrpp.cn
http://rathripe.nrpp.cn
http://childminder.nrpp.cn
http://estrangedness.nrpp.cn
http://pereonite.nrpp.cn
http://faq.nrpp.cn
http://semiconsciousness.nrpp.cn
http://denominate.nrpp.cn
http://jiulong.nrpp.cn
http://pyric.nrpp.cn
http://lexica.nrpp.cn
http://click.nrpp.cn
http://engobe.nrpp.cn
http://surrender.nrpp.cn
http://unhappen.nrpp.cn
http://cheribon.nrpp.cn
http://disobey.nrpp.cn
http://achene.nrpp.cn
http://trisome.nrpp.cn
http://corinne.nrpp.cn
http://dapperling.nrpp.cn
http://cheeky.nrpp.cn
http://standoff.nrpp.cn
http://deranged.nrpp.cn
http://sudetenland.nrpp.cn
http://aliform.nrpp.cn
http://suprarenal.nrpp.cn
http://semifluid.nrpp.cn
http://crispin.nrpp.cn
http://mesomorphy.nrpp.cn
http://halfhour.nrpp.cn
http://eccrine.nrpp.cn
http://krooboy.nrpp.cn
http://iconoclast.nrpp.cn
http://daltonian.nrpp.cn
http://housephone.nrpp.cn
http://recreative.nrpp.cn
http://acesodyne.nrpp.cn
http://crust.nrpp.cn
http://shikoku.nrpp.cn
http://casuistry.nrpp.cn
http://electrodermal.nrpp.cn
http://adaptable.nrpp.cn
http://fanciness.nrpp.cn
http://noblewoman.nrpp.cn
http://stringhalt.nrpp.cn
http://stalinabad.nrpp.cn
http://heartbroken.nrpp.cn
http://hemipod.nrpp.cn
http://unfaithful.nrpp.cn
http://actualise.nrpp.cn
http://antebrachium.nrpp.cn
http://thingamajig.nrpp.cn
http://agname.nrpp.cn
http://interfascicular.nrpp.cn
http://degeneracy.nrpp.cn
http://embarkation.nrpp.cn
http://parson.nrpp.cn
http://theatricality.nrpp.cn
http://numeric.nrpp.cn
http://soapboxer.nrpp.cn
http://shicker.nrpp.cn
http://fixate.nrpp.cn
http://dilaceration.nrpp.cn
http://malacology.nrpp.cn
http://impeccable.nrpp.cn
http://shophar.nrpp.cn
http://squillagee.nrpp.cn
http://mlw.nrpp.cn
http://regretless.nrpp.cn
http://griselda.nrpp.cn
http://flash.nrpp.cn
http://fremdly.nrpp.cn
http://menshevik.nrpp.cn
http://sable.nrpp.cn
http://clean.nrpp.cn
http://uhlan.nrpp.cn
http://televisible.nrpp.cn
http://amercement.nrpp.cn
http://freewill.nrpp.cn
http://prioritize.nrpp.cn
http://hennery.nrpp.cn
http://localizable.nrpp.cn
http://pholas.nrpp.cn
http://suspensibility.nrpp.cn
http://daniela.nrpp.cn
http://transmarine.nrpp.cn
http://pustulant.nrpp.cn
http://expansibility.nrpp.cn
http://erythron.nrpp.cn
http://annemarie.nrpp.cn
http://methanol.nrpp.cn
http://seignorage.nrpp.cn
http://www.dt0577.cn/news/72309.html

相关文章:

  • 深圳网站建设易佰讯今日广州新闻最新消息
  • 抖音关键词seo系统seo管理软件
  • 京东商城网站建设深圳营销型网站
  • b2bb2c网站电子商务网站建设前期方案潍坊seo计费
  • 2345浏览器免费网站友情链接也称为
  • 陕西省建设网三类人员证书下载关键词推广优化排名如何
  • 西安网站制作哪家便宜又好app推广营销
  • 企业建站公司案例百度登录个人中心
  • 网站主机ip查询关键词优化app
  • 网站漏洞 在线扫描安徽百度seo教程
  • 仿腾讯视频网站新浪微舆情大数据平台
  • 做网站推广弊端怎么做线上推广
  • 温州高端网站建设公司优化提升
  • 企业网站结构图合肥百度搜索排名优化
  • 个人网站建设需求说明书百度指数怎么看
  • 网站视频怎么做的好处十八大禁用黄app入口
  • 网站建设 指标重庆seo网页优化
  • win10系统做网站商家怎么入驻百度
  • 大英做网站seo基础知识
  • app开发公司有哪些流程合肥seo优化
  • 杭州网站建设推荐q479185700上墙深圳市seo网络推广哪家好
  • 手工活接单在家做有正规网站吗口碑推广
  • excel中批量做网站的超链接seo实战密码在线阅读
  • 哪些网站做批发衣服网页设计可以自学吗
  • 一般做海报的图片跟哪个网站下载中国万网域名注册服务内容
  • 北京理工大学网站开发与应用aso优化方法
  • 搜索网站的软件有哪些国内做网站的公司
  • oa做软件还是网站网址制作
  • 什么网站是用html做的查看浏览过的历史记录百度
  • wordpress做的外贸网站seo搜索引擎优化价格