当前位置:网站首页>MaxWell scraped data
MaxWell scraped data
2022-07-30 14:59:00 【future shadow】
Article table of contents
MaxWell installation and configuration
Prepare the MaxWell package in advance
tar -zxvf /opt/software/maxwell-1.25.0.tar.gz -C /opt/module/
1. Create a maxwell library in MySQL to store Maxwell metadata
mysql -uroot -p000000mysql> CREATE DATABASE maxwell;
2. Set the security level
mysql> set global validate_password_length=4;mysql> set global validate_password_policy=0;
3. Assign an account to operate the database
GRANT ALL ON maxwell.* TO 'maxwell'@'%' IDENTIFIED BY '000000';
4. Assign this account to monitor the permissions of other databases
GRANT SELECT , REPLICATION SLAVE , REPLICATION CLIENT ON *.* TO [email protected]'%';
Maxwell monitoring captures MySQL data
1. Copy the configuration file
cp config.properties.example config.properties
2. Modify the configuration file
producer=kafkakafka.bootstrap.servers=hadoop102:9092,hadoop103:9092,hadoop104:9092#need to addkafka_topic=ods_base_db_m# mysql login infohost=hadoop102user=maxwellpassword=000000#Need to add initialization will be usedclient_id=maxwell_1
Note:
- The default is to output to a kafka partition of the specified Kafka topic, because multiple partitions in parallel may disrupt the order of binlog
- If you want to improve the degree of parallelism, first set the number of partitions of kafka>1, and then set the producer_partition_by property
- producer_partition_by=database|table|primary_key|random| column
3. Start maxwell
/opt/module/maxwell-1.25.0/bin/maxwell --config /opt/module/maxwell-1.25.0/config.properties
4. Start the kafka consumer client (the premise is to start zookeeper first)
bin/kafka-console-consumer.sh --bootstrap-server hadoop102:9092 --topic ods_base_db_m
5. Operate the database to discover consumer consumption information
边栏推荐
- Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
- 接口自动化框架,lm-easytest内测版发布,赶紧用起来~
- 时序数据库在船舶风险管理领域的应用
- kubernate部署服务
- Skywalking入门
- 新一代开源免费的终端工具,太酷了
- What should I do if the sql server installation fails (what should I do if the sql server cannot be installed)
- Simple understanding of Precision, Recall, Accuracy, TP, TN, FP, FN
- Web消息推送之SSE
- Cookie simulation login "recommended collection"
猜你喜欢
随机推荐
Get the Google Advertising ID as a unique identifier
Flink实时数仓完结
5. DOM
Interface automation framework, lm-easytest beta version released, use it quickly~
[深入研究4G/5G/6G专题-46]: 5G Link Adaption链路自适应-2-常见缩略语
Hello, World
How to use Databricks for data analysis on TiDB Cloud | TiDB Cloud User Guide
【元胞自动机】基于元胞自动机模拟生命演化、病毒感染等实例附matlab代码
MaxWell抓取数据
打破原则引入SQL,MongoDB到底想要干啥?
OFDM Sixteen Lectures 3- OFDM Waveforms
redis6.0 源码学习(五)ziplist
业内人士真心话:只会测试没有前途的,我慌了......
记面试外包公司的一次经历,到底该不该去?
使用bat脚本以json格式导出mongo数据库中指定表数据
Flink优化
MySQL客户端工具的使用与MySQL SQL语句
LeetCode二叉树系列——145.二叉树的后序遍历
The main content of terrain analysis (the special effect level of the wandering earth)
Androd 跳转到google应用市场