hudi icon indicating copy to clipboard operation
hudi copied to clipboard

[SUPPORT]丢数了!flink cdc to hudi cow

Open sunmingqiaa opened this issue 4 years ago • 2 comments

Tips before filing an issue

  • Have you gone through our FAQs?

  • Join the mailing list to engage in conversations and get faster support at [email protected].

  • If you have triaged this as a bug, then file an issue directly.

Describe the problem you faced

A clear and concise description of the problem.

To Reproduce

Steps to reproduce the behavior:

2. 3. 4.

Expected behavior

A clear and concise description of what you expected to happen.

Environment Description

  • Hudi version :0.11.1

  • Spark version :

  • Hive version :2.11

  • Hadoop version :3.0

  • Storage (HDFS/S3/GCS..) :hdfs

  • Running on Docker? (yes/no) :no

Additional context

Add any other context about the problem here. 'connector'='hudi',\n" + 'path'= %s, \n" + 'table.type' = 'COPY_ON_WRITE',\n" + 'hoodie.datasource.write.recordkey.field'= %s,\n" 'write.tasks'= %s,\n" + 'write.task.max.size'=%s,\n" + 'write.merge.max_memory'=%s,\n" + 'hoodie.cleaner.commits.retained'=%s,\n" + 'hive_sync.enable'= 'true',\n" + 'hive_sync.mode'= 'hms',\n" + 'hive_sync.metastore.uris'= %s,\n" + 'hive_sync.jdbc_url'= %s,\n" + 'hive_sync.table'= %s,\n" + 'hive_sync.db'= %s,\n" + 'hive_sync.username'= %s,\n" + 'hive_sync.password'= %s,\n" + 'write.rate.limit'= %s,\n" + 'hive_sync.support_timestamp'= 'false'\n" +

试过导入100万数据和1000万数据,最近几次导完数都会发现少一部分数据,重复试过几次,每次导完查询结果都不一样,丢的数量不一定,hive和flilnksql查的结果一样,flink程序无异常。但是前几天测的时候没有发现丢数,两次区别在于,本次设置了write.rate.limit=1000。 Stacktrace image image

Add the stacktrace of the error.

sunmingqiaa avatar Aug 12 '22 00:08 sunmingqiaa

It's a known bug, we have fixed it in: https://github.com/apache/hudi/pull/6179, You can use this patch branch: https://github.com/apache/hudi/pull/6182 instead or wait for the release 0.12.0 which is coming out very soon ~

danny0405 avatar Aug 12 '22 01:08 danny0405

It's a known bug, we have fixed it in: #6179, You can use this patch branch: #6182 instead or wait for the release 0.12.0 which is coming out very soon ~

ok,thank you

sunmingqiaa avatar Aug 12 '22 01:08 sunmingqiaa