MAPREDUCE服务 MRS-采集数据时报错HoodieKeyException:回答

时间:2024-11-25 09:23:50

回答

不可以。

使用包含空记录的可空字段作为主键时会返回HoodieKeyException异常:

Caused by: org.apache.hudi.exception.HoodieKeyException: recordKey value: "null" for field: "name" cannot be null or empty.
at org.apache.hudi.keygen.SimpleKeyGenerator.getKey(SimpleKeyGenerator.java:58)
at org.apache.hudi.HoodieSparkSqlWriter$$anonfun$1.apply(HoodieSparkSqlWriter.scala:104)
at org.apache.hudi.HoodieSparkSqlWriter$$anonfun$1.apply(HoodieSparkSqlWriter.scala:100)
support.huaweicloud.com/cmpntguide-mrs/mrs_01_24079.html