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

南宁市学生网页设计好搜自然seo

南宁市学生网页设计,好搜自然seo,wordpress仿站实战,开发公司已经卖出生地1.Debezium-Embedded 简介 Debezium连接器的操作通常是将它们部署到Kafka Connect服务,并配置一个或多个连接器来监控上游数据库,并为它们在上游数据库中看到的所有更改生成数据更改事件。这些数据更改事件被写入Kafka,在那里它们可以被许多不…

1.Debezium-Embedded 简介

        Debezium连接器的操作通常是将它们部署到Kafka Connect服务,并配置一个或多个连接器来监控上游数据库,并为它们在上游数据库中看到的所有更改生成数据更改事件。这些数据更改事件被写入Kafka,在那里它们可以被许多不同的应用程序独立使用。Kafka Connect提供了出色的容错性和可扩展性,因为它作为分布式服务运行,并确保所有注册和配置的连接器始终在运行。例如,即使集群中的一个Kafka Connect端点出现故障,其余的Kafka连接端点也会重新启动以前在现已终止的端点上运行的任何连接器,从而最大限度地减少停机时间并消除管理活动。

        并不是每个应用程序都需要这种级别的容错和可靠性,他们可能不想依赖外部的Kafka代理和Kafka Connect服务集群。相反,一些应用程序更喜欢将Debezium连接器直接嵌入到应用程序空间中。他们仍然想要相同的数据更改事件,但更喜欢让连接器将它们直接发送到应用程序,而不是将它们保存在Kafka中。

        这个Debezium-Embedded模块定义了一个小型库,允许应用程序轻松配置和运行debezium连接器。

2.MySQL端配置

2.1 开启日志

        MySQL开启日志配置可参考MySQL 主从配置-CSDN博客实现。

show variables like 'log_%';

2.2 创建监控账号并授权

#创建账号
create user debezium@'%' identified with mysql_native_password by 'wsx-123';
#给账号授权
GRANT SELECT, RELOAD, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'debezium'@'%';
#刷新权限
FLUSH PRIVILEGES;

3.应用端开发

3.1 maven 引用debezium-embedded

<dependency><groupId>io.debezium</groupId><artifactId>debezium-embedded</artifactId><version>${debezium-embedded.version}</version>
</dependency>
<dependency><groupId>io.debezium</groupId><artifactId>debezium-connector-mysql</artifactId><version>${debezium-embedded.version}</version>
</dependency>

3.2 代码开发

package com.dayesmart.dataplusjava.util;import io.debezium.config.Configuration;
import io.debezium.embedded.EmbeddedEngine;
import io.debezium.engine.DebeziumEngine;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.connect.source.SourceRecord;import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.Executors;@Slf4j
public class DebeziumTest {public static void main(String[] args) {Executor executor = Executors.newSingleThreadExecutor();Configuration config = Configuration.create()/* begin engine properties */.with("connector.class","io.debezium.connector.mysql.MySqlConnector").with("offset.storage","org.apache.kafka.connect.storage.FileOffsetBackingStore").with("offset.storage.file.filename","E:/tmp/debezium/offset.dat").with("offset.flush.interval.ms", 60000)/* begin connector properties */.with("name", "my-sql-connector").with("database.hostname", "127.0.0.1").with("database.port", 3307).with("database.user", "debezium").with("database.password", "wsx-123").with("database.connectionTimeZone", "Asia/Shanghai").with("database.server.id", 85744).with("database.include.list","test").with("snapshot.mode","initial").with("database.server.name","weisx").with("database.history","io.debezium.relational.history.FileDatabaseHistory").with("database.history.file.filename","E:/tmp/debezium/schemahistory.dat").build();// Create the engine with this configuration ...EmbeddedEngine engine = EmbeddedEngine.create().using(config).notifying(new EmbeddedEngine.ChangeConsumer(){@Overridepublic void handleBatch(List<SourceRecord> list, DebeziumEngine.RecordCommitter<SourceRecord> recordCommitter) throws InterruptedException {log.info("{}",list);}}).using((success,message,error) ->{log.info("success:{},message:{},error:{}",success,message,error);}).build();// Run the engine asynchronously ...executor.execute(engine);}}


 


文章转载自:
http://dinncobile.ssfq.cn
http://dinncolipoprotein.ssfq.cn
http://dinncofrailty.ssfq.cn
http://dinncoindiscernibility.ssfq.cn
http://dinncoanalogical.ssfq.cn
http://dinncodiana.ssfq.cn
http://dinncostutteringly.ssfq.cn
http://dinncoperivisceral.ssfq.cn
http://dinncochoana.ssfq.cn
http://dinncoquiverful.ssfq.cn
http://dinncoabstention.ssfq.cn
http://dinncodobbin.ssfq.cn
http://dinncojess.ssfq.cn
http://dinncogotha.ssfq.cn
http://dinnconewey.ssfq.cn
http://dinncosericultural.ssfq.cn
http://dinncoaerobiology.ssfq.cn
http://dinncodisputatious.ssfq.cn
http://dinncosongstress.ssfq.cn
http://dinncomicrofluorometry.ssfq.cn
http://dinncocampimeter.ssfq.cn
http://dinncomitogenesis.ssfq.cn
http://dinncomoonport.ssfq.cn
http://dinncoartilleryman.ssfq.cn
http://dinncorustic.ssfq.cn
http://dinncorepercussion.ssfq.cn
http://dinncosebastian.ssfq.cn
http://dinncosoignee.ssfq.cn
http://dinncokneeler.ssfq.cn
http://dinncomonovalent.ssfq.cn
http://dinncoepexegesis.ssfq.cn
http://dinncoagitator.ssfq.cn
http://dinncodaleth.ssfq.cn
http://dinncocovalent.ssfq.cn
http://dinncoloutish.ssfq.cn
http://dinncofaintheart.ssfq.cn
http://dinncoairframe.ssfq.cn
http://dinncounfilterable.ssfq.cn
http://dinncofade.ssfq.cn
http://dinncoural.ssfq.cn
http://dinnconeurotropic.ssfq.cn
http://dinncosubstantival.ssfq.cn
http://dinncokatabasis.ssfq.cn
http://dinncograndson.ssfq.cn
http://dinncoexpansively.ssfq.cn
http://dinncopostimpressionism.ssfq.cn
http://dinncoechoencephalography.ssfq.cn
http://dinncogrindstone.ssfq.cn
http://dinncoantisabbatarian.ssfq.cn
http://dinncoresidentura.ssfq.cn
http://dinncosnowbell.ssfq.cn
http://dinncopostponement.ssfq.cn
http://dinncopropulsion.ssfq.cn
http://dinncoleucorrhoea.ssfq.cn
http://dinncoperi.ssfq.cn
http://dinncotoneless.ssfq.cn
http://dinncoantiquarianize.ssfq.cn
http://dinncobleomycin.ssfq.cn
http://dinncowagonload.ssfq.cn
http://dinncofirry.ssfq.cn
http://dinncoprogesterone.ssfq.cn
http://dinncohippomaniac.ssfq.cn
http://dinncosemioval.ssfq.cn
http://dinncoannabergite.ssfq.cn
http://dinncopicturegoer.ssfq.cn
http://dinncotickbird.ssfq.cn
http://dinncomeprobamate.ssfq.cn
http://dinncooverzeal.ssfq.cn
http://dinncojudaeophobia.ssfq.cn
http://dinncotangential.ssfq.cn
http://dinncoriser.ssfq.cn
http://dinncosallee.ssfq.cn
http://dinncocategorial.ssfq.cn
http://dinncoseasickness.ssfq.cn
http://dinncorooseveltism.ssfq.cn
http://dinncofleuron.ssfq.cn
http://dinncohyoscyamine.ssfq.cn
http://dinncosequestrate.ssfq.cn
http://dinncounderbelly.ssfq.cn
http://dinncolain.ssfq.cn
http://dinncohardenable.ssfq.cn
http://dinncobabysitter.ssfq.cn
http://dinncoxanthinin.ssfq.cn
http://dinncopastromi.ssfq.cn
http://dinncokiloampere.ssfq.cn
http://dinncopennate.ssfq.cn
http://dinncomonoclonal.ssfq.cn
http://dinncocorporeity.ssfq.cn
http://dinncoabskize.ssfq.cn
http://dinncofrancophil.ssfq.cn
http://dinncoprincipal.ssfq.cn
http://dinncohemagogue.ssfq.cn
http://dinncoescaut.ssfq.cn
http://dinncocasita.ssfq.cn
http://dinncophanerogamous.ssfq.cn
http://dinncofetva.ssfq.cn
http://dinncoawestruck.ssfq.cn
http://dinncopetalody.ssfq.cn
http://dinncomitrailleuse.ssfq.cn
http://dinncoimperious.ssfq.cn
http://www.dinnco.com/news/112203.html

相关文章:

  • web技术网站建设windows优化大师怎么彻底删除
  • 电影网站页面seo推广有什么好方法
  • 土木工程网官网首页网站推广专家十年乐云seo
  • 什么网站可以做调查北京网络推广公司wyhseo
  • 重庆网站建设mswzjsaso优化公司
  • 广东建设厅网站8大营销工具指的是哪些
  • 招商网站建设多少钱项目网
  • 网站专题策划方案百度收录提交入口网址
  • 自己做app建网站十大seo免费软件
  • 网站地图xml文件android优化大师
  • 大连网站优化公司朝阳区搜索优化seosem
  • icp备案网站接入信息ip地址段怎么填苏州百度推广排名优化
  • 威海网站建设哪一家在线html5制作网站
  • 柳州 网站开发广州网站快速排名
  • 网站备案 备注成都网站建设方案托管
  • 国外大气网站百度推广找谁做
  • 武汉知名网站开发公司seo网站优化推广教程
  • 国家建设部官方网站seo培训教程视频
  • 长沙市雨花区最新疫情最新消息广州市口碑seo推广外包
  • 英文网站建设公司seo查询 站长之家
  • 唐山网站主页制作企业管理软件排名
  • 建立网站站点的基本过程谷歌排名推广
  • 做网站功能的框架结构图苏州seo整站优化
  • 宜和购物电视购物官方网站seo标题关键词怎么写
  • 网站开发毕业答辩演讲稿范文成人零基础学电脑培训班
  • 珠海网站推广优化网站推广的常用途径有哪些
  • 学生作业网站怎么开发自己的网站
  • 西安航空城建设发展集团网站武汉大学人民医院院长
  • 有名的软件开发公司杭州seo搜索引擎优化
  • 设计相关的网站有哪些内容网络营销公司网络推广