当前位置:网站首页>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消息
二、拦截器过滤空值数据
更多拦截器相关博客请参考博主下面两篇文章:
边栏推荐
- 基于FPGA的超声波测距
- AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
- 2022最新中高级Android面试题目,【原理+实战+视频+源码】
- Low code practice of xtransfer, a cross-border payment platform: how to integrate with other medium-sized platforms is the core
- 2022 Alibaba Android advanced interview questions sharing, 2022 Alibaba hand Taobao Android interview questions
- 彻底理解为什么网络 I/O 会被阻塞?
- 一文读懂简单查询代价估算
- 公司破产后,黑石们来了
- 中文版Postman?功能真心强大!
- The basic grammatical structure of C language
猜你喜欢
![[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day](/img/7d/7a01c8c6923077d6c201bf1ae02c8c.png)
[today in history] July 5: the mother of Google was born; Two Turing Award pioneers born on the same day
![2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]](/img/c9/f4ab4578029cf043155a5811a64489.png)
2022 latest intermediate and advanced Android interview questions, [principle + practice + Video + source code]

蚂蚁集团开源可信隐私计算框架「隐语」:开放、通用

AI open2022 | overview of recommendation systems based on heterogeneous information networks: concepts, methods, applications and resources

The road of enterprise digital transformation starts from here

技术分享 | 常见接口协议解析

视频自监督学习综述

Rse2020/ cloud detection: accurate cloud detection of high-resolution remote sensing images based on weak supervision and deep learning

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

Analysis of postman core functions - parameterization and test report
随机推荐
China law network joins hands to observe the cloud, and the online system is a full link observable platform
JS solution force deduction daily question (12) - 556 Next larger element III (2022-7-3)
android中常见的面试题,2022金九银十Android大厂面试题来袭
You can have both fish and bear's paw! Sky wing cloud elastic bare metal is attractive!
Lombok @builder annotation
Emqx 5.0 officially released: a single cluster supports 100million mqtt connections
ICML2022 | 长尾识别中分布外检测的部分和非对称对比学习
CDB 实例的启动与关闭
The basic grammatical structure of C language
Use of websocket tool
Isprs2020/ cloud detection: transferring deep learning models for cloud detection between landsat-8 and proba-v
AI表现越差,获得奖金越高?纽约大学博士拿出百万重金,悬赏让大模型表现差劲的任务
Technology sharing | interface testing value and system
决策树与随机森林
Oracle date format conversion to_ date,to_ char,to_ Timestamp mutual conversion
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
C language makes it easy to add, delete, modify and check the linked list "suggested collection"
公司破产后,黑石们来了
Why can't Bi software do correlation analysis? Take you to analyze
一朵云开启智慧交通新未来