bookscup / canal-client Goto Github PK
View Code? Open in Web Editor NEW阿里巴巴数据同步组件canal的客户端,解析binlog增量数据后发送至MQ(rabbitmq,kafka,redis)
阿里巴巴数据同步组件canal的客户端,解析binlog增量数据后发送至MQ(rabbitmq,kafka,redis)
Rabbitmq持久化分为3个:交换机、队列、消息
目前你只提供了队列持久化参数,导致如果使用现有交换机如果是持久化的时候,报错:
[ERROR][20190521 16:53:39,562][RabbitmqSender:86] fail to send data to rabbitmq, error: channel is already closed due to channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg 'durable' for exchange 'amq.fanout' in vhost '/': received 'false' but current is 'true', class-id=40, method-id=10)
另外 消息头设置不当:content_type: text/plain
应该为json
另外 https://github.com/BooksCup/canal-client/blob/master/deploy/client.sh
canal-client-1.0.0.jar 在master分支没有找到 请问小白放进去吧
另外 master和https://github.com/BooksCup/canal-client/releases 代码不同步。。
connector.subscribe(".\..");
你这一句应该添加配置文件 读取相关的值
如果这样写 会导致canal配置失效的
因为客户端一链接server 就会生效这句话
canal文档写了
检查下CanalConnector是否调用subscribe(filter)方法;有的话,filter需要和instance.properties的canal.instance.filter.regex一致,否则subscribe的filter会覆盖instance的配置,如果subscribe的filter是...,那么相当于你消费了所有的更新数据 【特别注意】
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.