当前位置:网站首页>canal scrape data
canal scrape data
2022-07-30 14:59:00 【future shadow】
Article table of contents
canal installation and configuration
Prepare the canal package in advance
Note: canal is scattered after decompression, so it needs to be decompressed in a specific canal directory
module>mkdir canaltar -zxvf canal.deployer-1.1.4.tar.gz -C /opt/module/canal1. Set the security level
mysql> set global validate_password_length=4;mysql> set global validate_password_policy=02. Assign an account (canal) to operate the database
mysql> GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%' IDENTIFIED BY 'canal' ;canal monitoring captures MySQL data
1. Modify canal/conf/canal.properties
canal.serverMode = kafkacanal.mq.servers = hadoop102:9092,hadoop103:9092,hadoop104:90922. Modify conf/example/instance.properties
canal.instance.master.address=hadoop102:3306canal.instance.dbUsername=canalcanal.instance.dbPassword=canalcanal.mq.topic=ods_base_db_c3. Start canal
canal>bin/startup.sh4. Start the kafka consumer client test
Enable zookeeper and kafak in advance
bin/kafka-console-consumer.sh --bootstrap-server hadoop102:9092 --topic ods_base_db_c5. Operate the database and view the effect of the kafak consumer client

边栏推荐
- Why do software testing have to learn automation?Talk about the value of automated testing in my eyes
- The truth of the industry: I will only test those that have no future, and I panic...
- ROS 导航
- 网络安全——lcx的使用
- 新一代开源免费的终端工具,太酷了
- Flask Framework - Sijax
- 代码杂谈:从一道面试题看学会Rust的难度
- sql server安装失败怎么办(sql server安装不了怎么办)
- MPSK抗噪声性能对比(即MPSK标准误码率曲线)
- 【回归预测-lssvm分类】基于最小二乘支持向量机lssvm实现数据分类代码
猜你喜欢

43.【list的简单属性】

mongodb打破原则引入SQL,它到底想要干啥?

手把手教你写让人眼前一亮的软件测试简历,收不到面试邀请算我输

MaxWell抓取数据

Huawei's 7-year-experienced software testing director, gives some advice to all friends who want to change careers to learn software testing

Flask Framework - Sijax

吃透Chisel语言.29.Chisel进阶之通信状态机(一)——通信状态机:以闪光灯为例

Why do software testing have to learn automation?Talk about the value of automated testing in my eyes

自动化办公|办公软件和亿图脑图MindMaster快捷键

ROS 导航
随机推荐
Flask框架——Flask-Mail邮件
[机缘参悟-53]:《素书》-3-修身养志[求人之志章第三]
ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?
The use of ccs software (app software that makes money reliably)
代码杂谈:从一道面试题看学会Rust的难度
容器排序案例
eclipse连接SQL server数据库「建议收藏」
The main content of terrain analysis (the special effect level of the wandering earth)
Why did I switch from developer to testing, 3 years software testing engineer, tell you the secret of this
Application of time series database in the field of ship risk management
深入浅出零钱兑换问题——背包问题的套壳
ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
使用bat脚本以json格式导出mongo数据库中指定表数据
ddl and dml in sql (the difference between sql and access)
A simple change for problem, knapsack problem sets of shell
The website adds a live 2d kanban girl that can dress up and interact
How awesome is the "12306" architecture?
Some thoughts on String
还在说软件测试没有中年危机?9年测试工程师惨遭淘汰
Web消息推送之SSE