当前位置:网站首页>flume系列之:拦截器过滤数据
flume系列之:拦截器过滤数据
2022-07-05 18:45:00 【目标博客专家】
flume系列之:拦截器过滤数据
一、kafka空值数据
ConsumerRecord(topic=‘debezium-prod-optics_prod_1h.optics_prod.user_order’, partition=2, offset=3636705, timestamp=1656746091521, timestamp_type=0, key=b’{“schema”:{“type”:“struct”,“fields”:[{“type”:“int32”,“optional”:false,“field”:“order_id”}],“optional”:false,“name”:“debezium_prod_optics_prod_1h.order_prod.user_order.Key”},“playload”:{“order_id”:2752094}}', value=None, headers=[], checksum=None, serialized_key_size=223, serialized_value_size=-1, serialized_header_size=-1)
如上所示:
- value=None
- flume可以使用拦截器过滤掉value为None的kafka消息
二、拦截器过滤空值数据
更多拦截器相关博客请参考博主下面两篇文章:
边栏推荐
- Oracle日期格式转换 to_date,to_char,to_timetamp 相互转换
- Web3.0时代来了,看天翼云存储资源盘活系统如何赋能新基建(下)
- XML基础知识概念
- 【Autosar 十四 启动流程详解】
- [performance test] jmeter+grafana+influxdb deployment practice
- Summary of six points of MySQL optimization
- JS解力扣每日一题(十二)——556. 下一个更大元素 III(2022-7-3)
- The worse the AI performance, the higher the bonus? Doctor of New York University offered a reward for the task of making the big model perform poorly
- 如何快速进阶自动化测试?听听这3位BAT大厂测试工程师的切身感想....
- 泰山OFFICE技术讲座:由行的布局高度,谈绘制高度的高度溢出、高度缩水(全网首发)
猜你喜欢

How to quickly advance automated testing? Listen to the personal feelings of the three bat test engineers

android中常见的面试题,2022金九银十Android大厂面试题来袭

Tianyi cloud understands enterprise level data security in this way

Windows Oracle open remote connection Windows Server Oracle open remote connection

Idea configuring NPM startup

国内低代码开发平台靠谱的都有哪些?

Interviewer: what is the difference between redis expiration deletion strategy and memory obsolescence strategy?

Word查找红色文字 Word查找颜色字体 Word查找突出格式文本

Technology sharing | common interface protocol analysis

Talking about fake demand from takeout order
随机推荐
开源 SPL 消灭数以万计的数据库中间表
The easycvr authorization expiration page cannot be logged in. How to solve it?
c语言简便实现链表增删改查「建议收藏」
Rse2020/ cloud detection: accurate cloud detection of high-resolution remote sensing images based on weak supervision and deep learning
RedHat7.4配置yum软件仓库(RHEL7.4)
Optimization of middle alignment of loading style of device player in easycvr electronic map
Word查找红色文字 Word查找颜色字体 Word查找突出格式文本
UDF implementation of Dameng database
Various pits of vs2017 QT
What is text mining? "Suggested collection"
视频自监督学习综述
公司破产后,黑石们来了
[detailed explanation of AUTOSAR 14 startup process]
ICML2022 | 长尾识别中分布外检测的部分和非对称对比学习
Benefits of automated testing
Ultrasonic ranging based on FPGA
什么是文本挖掘 ?「建议收藏」
技术分享 | 常见接口协议解析
数学分析_笔记_第9章:曲线积分与曲面积分
为什么 BI 软件都搞不定关联分析?带你分析分析