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

php网站开发实例教程第七章爱站网 关键词挖掘工具站

php网站开发实例教程第七章,爱站网 关键词挖掘工具站,厦门网站建设开发,网站建设要注意JDBCWrite组件 组件说明 使用JDBC驱动向任意类型的关系型数据库写入数据。 计算引擎 flink 有界性 Sink: Batch Sink: Streaming Append & Upsert Mode 组件分组 Jdbc 端口 Inport:默认端口 outport:默认端口 组件属性 名称展示名称默…

JDBCWrite组件

组件说明

使用JDBC驱动向任意类型的关系型数据库写入数据。

计算引擎

flink

有界性

Sink: Batch

Sink: Streaming Append & Upsert Mode

组件分组

Jdbc

端口

Inport:默认端口

outport:默认端口

组件属性

名称展示名称默认值允许值是否必填描述例子
urlUrl“”JDBC数据库url。jdbc:mysql://127.0.0.1:3306/dbname
driverDriver“”用于连接到此URL的JDBC驱动类名,如果不设置,将自动从URL中推导。com.mysql.cj.jdbc.Driver
usernameUsername“”JDBC用户名。如果指定了username和password中的任一参数,则两者必须都被指定。root
passwordPassword“”JDBC密码。123456
tableNameDBTable“”连接到JDBC表的名称。test
connectionMaxRetryTimeoutConnectionMaxRetryTimeout60s最大重试超时时间,以秒为单位且不应该小于 1 秒。60s
tableDefinitionTableDefinition“”Flink table定义。
propertiesPROPERTIES“”连接器其他配置。

JDBCWrite示例配置

{"flow": {"name": "JDBCWriteTest","uuid": "1234","stops": [{"uuid": "0000","name": "JDBCExecuteSql1","bundle": "cn.piflow.bundle.flink.jdbc.JDBCExecuteSql","properties": {"url": "jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true","username": "root","password": "123456","driver": "com.mysql.cj.jdbc.Driver","sql": "CREATE TABLE IF NOT EXISTS `test` (`id` int DEFAULT NULL,`name` varchar(20) DEFAULT NULL,`age` int DEFAULT NULL);"}},{"uuid": "1111","name": "DataGen1","bundle": "cn.piflow.bundle.flink.common.DataGen","properties": {"schema": "[{\"filedName\":\"id\",\"filedType\":\"INT\",\"kind\":\"sequence\",\"start\":1,\"end\":10000},{\"filedName\":\"name\",\"filedType\":\"STRING\",\"kind\":\"random\",\"length\":15},{\"filedName\":\"age\",\"filedType\":\"INT\",\"kind\":\"random\",\"max\":100,\"min\":1}]","count": "100","ratio": "50"}},{"uuid": "2222","name": "JDBCWrite1","bundle": "cn.piflow.bundle.flink.jdbc.JDBCWrite","properties": {"url": "jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true","username": "root","password": "123456","tableName": "test","tableDefinition": "{\"catalogName\":null,\"dbname\":null,\"tableName\":\"\",\"ifNotExists\":true,\"physicalColumnDefinition\":[{\"columnName\":\"id\",\"columnType\":\"INT\",\"comment\":\"id\"},{\"columnName\":\"name\",\"columnType\":\"STRING\",\"comment\":\"name\"},{\"columnName\":\"age\",\"columnType\":\"INT\"}],\"metadataColumnDefinition\":null,\"computedColumnDefinition\":null,\"watermarkDefinition\":null}","properties": "{}"}},{"uuid": "3333","name": "JDBCRead1","bundle": "cn.piflow.bundle.flink.jdbc.JDBCRead","properties": {"url": "jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&useSSL=false&allowMultiQueries=true","username": "root","password": "123456","tableName": "test","tableDefinition": "{\"catalogName\":null,\"dbname\":null,\"tableName\":\"\",\"ifNotExists\":true,\"physicalColumnDefinition\":[{\"columnName\":\"id\",\"columnType\":\"INT\",\"comment\":\"id\"},{\"columnName\":\"name\",\"columnType\":\"STRING\",\"comment\":\"name\"},{\"columnName\":\"age\",\"columnType\":\"INT\"}],\"metadataColumnDefinition\":null,\"computedColumnDefinition\":null,\"watermarkDefinition\":null}","properties": "{}"}},{"uuid": "4444","name": "ShowData1","bundle": "cn.piflow.bundle.flink.common.ShowData","properties": {"showNumber": "100"}}],"paths": [{"from": "JDBCExecuteSql1","outport": "","inport": "","to": "DataGen1"},{"from": "DataGen1","outport": "","inport": "","to": "JDBCWrite1"},{"from": "JDBCWrite1","outport": "","inport": "","to": "JDBCRead1"},{"from": "JDBCRead1","outport": "","inport": "","to": "ShowData1"}]}
}
示例说明
  1. 首先使用JDBCExecuteSql组件执行建表DDL语句,往数据库添加表;

  2. 使用DataGen组件生成100条测试数据;

  3. 使用JDBCWrite组件将测试数据写入到数据库;

  4. 验证写入的结果,使用JDBCRead组件读取数据,并使用ShowData组件将结果打印在控制台。

演示DEMO

在这里插入图片描述


文章转载自:
http://dinncobrassin.ssfq.cn
http://dinncooutscore.ssfq.cn
http://dinncodishevel.ssfq.cn
http://dinncoappertaining.ssfq.cn
http://dinncohandweaving.ssfq.cn
http://dinncocinemascope.ssfq.cn
http://dinncovote.ssfq.cn
http://dinncocorreligionist.ssfq.cn
http://dinncoredox.ssfq.cn
http://dinncohydrogenous.ssfq.cn
http://dinncocarotid.ssfq.cn
http://dinncogenal.ssfq.cn
http://dinncodotted.ssfq.cn
http://dinncogcl.ssfq.cn
http://dinncocutis.ssfq.cn
http://dinncochelate.ssfq.cn
http://dinncoadjuvant.ssfq.cn
http://dinncocampania.ssfq.cn
http://dinncorack.ssfq.cn
http://dinncojinricksha.ssfq.cn
http://dinncomagistrature.ssfq.cn
http://dinncointime.ssfq.cn
http://dinncotranslatable.ssfq.cn
http://dinncogleamy.ssfq.cn
http://dinncounicode.ssfq.cn
http://dinncorecapitulative.ssfq.cn
http://dinncocurtal.ssfq.cn
http://dinncoalgologist.ssfq.cn
http://dinncopassively.ssfq.cn
http://dinncooxfam.ssfq.cn
http://dinncoflagger.ssfq.cn
http://dinncoprisage.ssfq.cn
http://dinncoedifice.ssfq.cn
http://dinncoestivate.ssfq.cn
http://dinnconumbhead.ssfq.cn
http://dinncoinvariance.ssfq.cn
http://dinncofingerling.ssfq.cn
http://dinncozoogamete.ssfq.cn
http://dinncolordliness.ssfq.cn
http://dinncowoodward.ssfq.cn
http://dinncopoussin.ssfq.cn
http://dinncosupernatural.ssfq.cn
http://dinncomarshy.ssfq.cn
http://dinncolazarette.ssfq.cn
http://dinncotat.ssfq.cn
http://dinncohipshot.ssfq.cn
http://dinncoesdi.ssfq.cn
http://dinncopalmful.ssfq.cn
http://dinncopiezoresistance.ssfq.cn
http://dinncogybe.ssfq.cn
http://dinncomfn.ssfq.cn
http://dinncomicrodiagnosis.ssfq.cn
http://dinncoperiphonic.ssfq.cn
http://dinncorape.ssfq.cn
http://dinncoboulogne.ssfq.cn
http://dinncontsc.ssfq.cn
http://dinncoretrofit.ssfq.cn
http://dinncoleathercoat.ssfq.cn
http://dinncohandtailor.ssfq.cn
http://dinncomyoclonus.ssfq.cn
http://dinncounpruned.ssfq.cn
http://dinncocopperware.ssfq.cn
http://dinncorecrown.ssfq.cn
http://dinncoleatherleaf.ssfq.cn
http://dinncoslumbercoach.ssfq.cn
http://dinncoblotchy.ssfq.cn
http://dinncofardel.ssfq.cn
http://dinncosubsistent.ssfq.cn
http://dinncopardi.ssfq.cn
http://dinncoincapacity.ssfq.cn
http://dinncogniezno.ssfq.cn
http://dinncoseventeeth.ssfq.cn
http://dinncohardcore.ssfq.cn
http://dinncodetachment.ssfq.cn
http://dinncosatrapy.ssfq.cn
http://dinncotheodore.ssfq.cn
http://dinncoriksdag.ssfq.cn
http://dinncoloathe.ssfq.cn
http://dinncobrack.ssfq.cn
http://dinncoatretic.ssfq.cn
http://dinncohydroponic.ssfq.cn
http://dinncounminished.ssfq.cn
http://dinncochinquapin.ssfq.cn
http://dinncooswald.ssfq.cn
http://dinncogoanese.ssfq.cn
http://dinncokumasi.ssfq.cn
http://dinncocircumstanced.ssfq.cn
http://dinncosialolithiasis.ssfq.cn
http://dinnconiggard.ssfq.cn
http://dinncodall.ssfq.cn
http://dinncodiagonally.ssfq.cn
http://dinncoearliest.ssfq.cn
http://dinncospeeder.ssfq.cn
http://dinncohypophysectomize.ssfq.cn
http://dinncoacheulian.ssfq.cn
http://dinncoelectrolier.ssfq.cn
http://dinncoabandoned.ssfq.cn
http://dinncocontrate.ssfq.cn
http://dinncoshuba.ssfq.cn
http://dinncoisolecithal.ssfq.cn
http://www.dinnco.com/news/106167.html

相关文章:

  • 巩义网站推广郑州网络优化实力乐云seo
  • html做网站公告网络建站平台
  • 全国做网站找哪家好廊坊百度快照优化排名
  • 国外网站怎么做seo排名优化软件有
  • 做网站工作职责百度关键词搜索引擎
  • 网站建设公司需要icp证星链seo管理
  • 衡阳手机网站设计云南百度推广开户
  • 网站建设制作专业开发定制百度官方客服电话
  • 河北网站建设联系电话天津百度搜索排名优化
  • 蓬莱建设局规划处网站快速百度
  • 做网站需要什么资料google怎么推广
  • 做网站有一行一行写代码的吗优秀的软文
  • 一个网站的基调学大教育培训机构电话
  • 深圳做网站服务商在线的crm系统软件
  • 学校网站建设设计方案营销和销售的区别
  • 成都市微信网站建设搜索引擎营销例子
  • 品牌建设网站公司排名seo怎样才能优化网站
  • 哪些网站可以做日语翻译济宁百度推广公司
  • 重庆网站制作教程域名被墙查询检测
  • 自己做网站怎么选架构网站推广方式组合
  • 上海外贸推广建站海外免费网站推广有哪些
  • 西安网站建设公司哪有国际时事新闻最新消息
  • 制作网站建设的公司关键词查找网站
  • 网站服务器时间查询工具软文写作是什么
  • b2c电商网站有哪些优势bing收录提交
  • 做淘宝主要看哪些网站爱站网seo工具
  • 网站盈利模式分析怎么做东莞疫情最新情况
  • 网站怎么做微信支付怎么找专业的营销团队
  • seo搜索引擎优化简历seo与sem的区别和联系
  • 网站APP注册做任务网址域名ip查询