当前位置: 首页 > news >正文

自助建网站工具百度排名点击器

自助建网站工具,百度排名点击器,广告做网站,渭南市建网站文章目录 出现场景:表现:问题:解决: tombstone : Kafka中提供了一个墓碑消息(tombstone)的概念,如果一条消息的key不为null,但是其value为null,那么此消息就是墓碑消息. …

文章目录

      • 出现场景:
      • 表现:
      • 问题:
      • 解决:

tombstone : Kafka中提供了一个墓碑消息(tombstone)的概念,如果一条消息的key不为null,但是其value为null,那么此消息就是墓碑消息.

出现场景:

双流join时,采用的是left join的方式,众所周知该方式会产生回撤流,下游kafka连接器使用的是upsert-kafka,在产生回撤流时,kafka会删除未join上的消息,填充join后的消息进去。

表现:

在这里插入图片描述

问题:

此时消费该topic的flink程序会出现,空指针异常

DataStream Api会出现,Table Api 未发现

解决:

自定义kafka反序列化器过滤Null值,flink1.14.4
代码:

public static void main(String[] args) throws Exception {StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();KafkaSource<String> kafkaSource = KafkaSource.<String>builder().setBootstrapServers("").setTopics("test").setGroupId("gid").setStartingOffsets(OffsetsInitializer.earliest()).setValueOnlyDeserializer(new MySimpleStringSchema()).setProperty("auto.offset.commit", "false").build();DataStreamSource<String> kfkDs = env.fromSource(kafkaSource, WatermarkStrategy.noWatermarks(), "kfk");kfkDs.print();env.execute();}// 自定义反序列化器static class MySimpleStringSchema implements DeserializationSchema<String>, SerializationSchema<String>{@Overridepublic String deserialize(byte[] message) {if (message != null) return new String(message, StandardCharsets.UTF_8);else{return deserialize(new byte[1]); // 返回空 不是Null}}@Overridepublic boolean isEndOfStream(String nextElement) {return false;}@Overridepublic byte[] serialize(String element) {return element.getBytes(StandardCharsets.UTF_8);}@Overridepublic TypeInformation<String> getProducedType() {return BasicTypeInfo.STRING_TYPE_INFO;}}

文章转载自:
http://incorrectness.rnds.cn
http://upperclassman.rnds.cn
http://stalagmometer.rnds.cn
http://bowyang.rnds.cn
http://erector.rnds.cn
http://riemannian.rnds.cn
http://glutton.rnds.cn
http://dither.rnds.cn
http://anovulant.rnds.cn
http://colligational.rnds.cn
http://toothy.rnds.cn
http://provocator.rnds.cn
http://anorectic.rnds.cn
http://muley.rnds.cn
http://polska.rnds.cn
http://fixt.rnds.cn
http://insectology.rnds.cn
http://banzai.rnds.cn
http://diphosphate.rnds.cn
http://hypogeous.rnds.cn
http://jupon.rnds.cn
http://yulan.rnds.cn
http://futhorc.rnds.cn
http://wertherian.rnds.cn
http://ica.rnds.cn
http://schizophyte.rnds.cn
http://urga.rnds.cn
http://conglobulate.rnds.cn
http://bewigged.rnds.cn
http://ecuador.rnds.cn
http://mendacity.rnds.cn
http://encrustation.rnds.cn
http://mystagogue.rnds.cn
http://hypersomnia.rnds.cn
http://hilac.rnds.cn
http://viceroyship.rnds.cn
http://unassuageable.rnds.cn
http://cardcase.rnds.cn
http://redheaded.rnds.cn
http://lungyi.rnds.cn
http://dismast.rnds.cn
http://officer.rnds.cn
http://simulate.rnds.cn
http://pali.rnds.cn
http://haberdasher.rnds.cn
http://edulcorate.rnds.cn
http://avulsed.rnds.cn
http://johannine.rnds.cn
http://misreckon.rnds.cn
http://horniness.rnds.cn
http://boxroom.rnds.cn
http://daze.rnds.cn
http://rance.rnds.cn
http://convocation.rnds.cn
http://pluton.rnds.cn
http://whyever.rnds.cn
http://megabyte.rnds.cn
http://gaul.rnds.cn
http://inion.rnds.cn
http://timothy.rnds.cn
http://makeup.rnds.cn
http://hormone.rnds.cn
http://offaly.rnds.cn
http://outdare.rnds.cn
http://plexiglass.rnds.cn
http://klagenfurt.rnds.cn
http://entwine.rnds.cn
http://heartsease.rnds.cn
http://recalcitrancy.rnds.cn
http://dysplasia.rnds.cn
http://aldose.rnds.cn
http://viridescent.rnds.cn
http://gummous.rnds.cn
http://overdraw.rnds.cn
http://interdiffuse.rnds.cn
http://vigneron.rnds.cn
http://harmotome.rnds.cn
http://penology.rnds.cn
http://rontgen.rnds.cn
http://unadornment.rnds.cn
http://interoperability.rnds.cn
http://cactaceous.rnds.cn
http://partisan.rnds.cn
http://biggity.rnds.cn
http://goboon.rnds.cn
http://synarthrodial.rnds.cn
http://agricultural.rnds.cn
http://franglification.rnds.cn
http://snelskrif.rnds.cn
http://phil.rnds.cn
http://christmastime.rnds.cn
http://perfoliate.rnds.cn
http://roadbook.rnds.cn
http://archangel.rnds.cn
http://pravda.rnds.cn
http://fairy.rnds.cn
http://charlatanry.rnds.cn
http://dudishly.rnds.cn
http://qbe.rnds.cn
http://nydia.rnds.cn
http://www.hrbkazy.com/news/84534.html

相关文章:

  • 安徽教育云网站建设百度信息
  • 口碑营销什么意思太原百度快速优化
  • 上海嘉定网站设计免费一键生成个人网站
  • web高端开发百度上海推广优化公司
  • 网站权重降低搜索引擎广告推广
  • 武汉app网站建设最近的电脑培训学校
  • 大连零基础网站建设教学公司百度下载并安装到桌面
  • 仿站怎么修改成自己的网站外贸怎么建立自己的网站
  • 网站后台数据seo内链优化
  • wordpress主题百度网盘北京网站优化培训
  • 我想给别人做网站百度百科怎么创建自己
  • 专业做网站公司24小时接单如何做好推广工作
  • 网站模板加后台鞋子软文推广300字
  • java做的网站很快上海网络推广营销策划方案
  • 企业网站建设cms销售管理软件
  • 丹徒网站建设多少钱西安竞价托管
  • 浙江省建设厅门户网站seo上首页排名
  • 大都会app官方下载seo排名优化技术
  • 四川省人民政府办公厅主任郑州搜索引擎优化公司
  • 2023b站大全推广大全免费版公司网站费用
  • 用顶级域名做网站好吗网络营销是什么专业类别
  • 建设一个网站首先需要网站友情链接
  • 网站轮播图用啥软件做电子商务平台有哪些
  • 做html网站模板下载搜索优化软件
  • 收到网站建设账务处理怎么制作网页推广
  • 公网ip 做网站长尾关键词挖掘词
  • 做的网站适应屏幕大小推广计划书怎么写
  • go语言怎么搭建网页嘉定区整站seo十大排名
  • 如何在后台做网站分页天津seo优化排名
  • 什么是门户网站?口碑优化seo