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

边栏推荐
- 泡沫褪去,DeFi还剩下什么
- Smart Contract Security - Private Data Access
- Recommended open source tools: MegPeak, a high-performance computing tool
- Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
- Before quitting, make yourself a roll king
- MIMO雷达波形设计
- MPSK抗噪声性能对比(即MPSK标准误码率曲线)
- 双碳目标下:农田温室气体排放模拟
- pytorch与keras的相互转换(代码以LeNet-5为例)
- 机房布线的至高境界,美到窒息
猜你喜欢

43.【list的简单属性】

PyQt5快速开发与实战 9.1 使用PyInstaller打包项目生成exe文件

Flink optimization

【回归预测-lssvm分类】基于最小二乘支持向量机lssvm实现数据分类代码

3年软件测试经验面试要求月薪22K,明显感觉他背了很多面试题...

Smart Contract Security - Private Data Access

还在说软件测试没有中年危机?9年测试工程师惨遭淘汰

吃透Chisel语言.28.Chisel进阶之有限状态机(二)——Mealy状态机及与Moore状态机的对比

MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

容器排序案例
随机推荐
ddl and dml in sql (the difference between sql and access)
canal抓取数据
容器排序案例
使用bat脚本以json格式导出mongo数据库中指定表数据
5. DOM
Flink optimization
43.【list的简单属性】
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
【回归预测-lssvm分类】基于最小二乘支持向量机lssvm实现数据分类代码
Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
The evolution of content products has three axes: traffic, technology, and product form
一文读懂网络效应对Web3的重要意义
泡沫褪去,DeFi还剩下什么
OFDM Sixteen Lectures 3- OFDM Waveforms
Simple understanding of Precision, Recall, Accuracy, TP, TN, FP, FN
Why do software testing have to learn automation?Talk about the value of automated testing in my eyes
基于5G的仓储信息化解决方案2022
CS内网横向移动 模拟渗透实操 超详细
43.【list链表的定义及初始化】