当前位置:网站首页>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

边栏推荐
- 查阅所连接过的WiFi所有信息(含密码)(访问历史所有WiFi连接)
- 浅析显卡市场的未来走向:现在可以抄底了吗?
- Eclipse connects to SQL server database "recommended collection"
- Remember an experience of interviewing an outsourcing company, should you go?
- MPSK抗噪声性能对比(即MPSK标准误码率曲线)
- MIMO雷达波形设计
- Flink优化
- MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- 内容产品进化三板斧:流量、技术、产品形态
- 百家号取消接口发文功能:插外链获权重被堵死
猜你喜欢
随机推荐
MaxWell scraped data
Machine learning difference in the competition and industry application
Eclipse connects to SQL server database "recommended collection"
Start learning C language
三电系统集成技术杂谈
3 years of software testing experience, the interview requires a monthly salary of 22K, obviously he has memorized a lot of interview questions...
UPC2022 Summer Individual Training Game 19 (B, P)
以unity3d为例解读:游戏数据加密
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
业内人士真心话:只会测试没有前途的,我慌了......
Some thoughts on String
吃透Chisel语言.28.Chisel进阶之有限状态机(二)——Mealy状态机及与Moore状态机的对比
#第九章 子查询课后习题
Could not acquire management access for administration
开源工具推荐:高性能计算辅助工具MegPeak
kubernate部署服务
The evolution of content products has three axes: traffic, technology, and product form
【元胞自动机】基于元胞自动机模拟生命演化、病毒感染等实例附matlab代码
Application of time series database in the field of ship risk management
43.【list的简单属性】









