User class threw exception:org.apache.spark.sql.streaming

hudi整合hive提交到yarn报错

User class threw exception: org.apache.spark.sql.streaming.StreamingQueryException: Following instants have timestamps >= compactionInstant (20210710211157) Instants :[[20210713205004__deltacommit__COMPLETED], [20210713205200__deltacommit__COMPLETED], [20210714091634__deltacommit__COMPLETED]]
=== Streaming Query ===
Identifier: action2hudi [id = d73882f0-9623-4591-b0a8-78747bf56ab4, runId = f3986e44-be32-4f22-bd92-a93d016daa38]
Current Committed Offsets: {KafkaV2[Subscribe[news]]: {"news":{"0":7545}}}
Current Available Offsets: {KafkaV2[Subscribe[news]]: {"news":{"0":8120}}}
Current State: ACTIVE
Thread State: RUNNABLE
Logical Plan:
Project [cast(value#8 as string) AS value#101]
+- StreamingExecutionRelation KafkaV2[Subscribe[news]], [key#7, value#8, topic#9, partition#10, offset#11L, timestamp#12, timestampType#13]
at org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runStream(StreamExecution.scala:297)
at org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:193)
Caused by: java.lang.IllegalArgumentException: Following instants have timestamps >= compactionInstant (20210710211157) Instants :[[20210713205004__deltacommit__COMPLETED], [20210713205200__deltacommit__COMPLETED], [20210714091634__deltacommit__COMPLETED]]
at org.apache.hudi.common.util.ValidationUtils.checkArgument(ValidationUtils.java:40)
  • 原因:

hive 解析 hudi 数据结构需要 HoodieParquetInputFormat 类,属于 hudi-hadoop-mr-bundle-0.5.2-incubating.jar 包

  • 解决:

导入对应版本的 hudi-hadoop-mr-bundle-0.5.2-incubating.jar 包到 hive/lib/ 目录下,重启 hive 相关服务(metastore,hiveserver2)。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值