当前位置:网站首页>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.properties2. 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_1Note:
- 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.properties4. 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_m5. Operate the database to discover consumer consumption information

边栏推荐
- Allure Advanced - Dynamically Generate Report Content
- 算力顶天地,存力纳乾坤:国家超级计算济南中心的一体两面
- Androd 跳转到google应用市场
- LeetCode_98_验证二叉搜索树
- 机房布线的至高境界,美到窒息
- sql server安装失败怎么办(sql server安装不了怎么办)
- 开源工具推荐:高性能计算辅助工具MegPeak
- Some thoughts on String
- Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
- Allure进阶-动态生成报告内容
猜你喜欢

新时代背景下智慧城市的建设与5G技术有何关联

The evolution of content products has three axes: traffic, technology, and product form

三电系统集成技术杂谈

深入浅出零钱兑换问题——背包问题的套壳

NFTScan 与 PANews 联合发布多链 NFT 数据分析报告

Interface automation framework, lm-easytest beta version released, use it quickly~
![[Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)](/img/65/7bd87794ebde510ecfd1b0e4bd4c94.png)
[Advanced ROS] Lecture 11 Robot co-simulation based on Gazebo and Rviz (motion control and sensors)

开始学习C语言了

Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates

71页全域旅游综合整体解决方案2021 ppt
随机推荐
BI-SQL丨WHILE
ESP32 反复重启问题 Arduino屏蔽断电探测器
记面试外包公司的一次经历,到底该不该去?
网站添加能换装可互动的live 2d看板娘
3 years of software testing experience, the interview requires a monthly salary of 22K, obviously he has memorized a lot of interview questions...
使用bat脚本以json格式导出mongo数据库中指定表数据
查阅所连接过的WiFi所有信息(含密码)(访问历史所有WiFi连接)
UPC2022 Summer Individual Training Game 19 (B, P)
学习 MySQL 需要知道的 28 个小技巧
Web3创始人和建设者必备指南:如何构建适合的社区?
Flask Framework - Sijax
CS内网横向移动 模拟渗透实操 超详细
Start learning C language
VLAN实验
Interface automation framework, lm-easytest beta version released, use it quickly~
产品年度营销计划书
MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
新一代开源免费的终端工具,太酷了
JSON common annotations
OFDM Sixteen Lectures 3- OFDM Waveforms