hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] garyli1019 commented on issue #1362: HUDI-644 Enable user to get checkpoint from previous commits in DeltaStreamer
Date Mon, 02 Mar 2020 19:38:46 GMT
garyli1019 commented on issue #1362: HUDI-644 Enable user to get checkpoint from previous commits
in DeltaStreamer
URL: https://github.com/apache/incubator-hudi/pull/1362#issuecomment-593579929
 
 
   @pratyakshsharma Thanks for reviewing this PR.
   I can say more about my use cases:
   
   - I am using Kafka connect to sink Kafka to HDFS every 30 minutes, partitioned by the arrival
time(year=xx/month=xx/day=xx/hour=xx)
   - The homebrew spark Datasource I built is using (the current time - the last Hudi commit
timestamp) to find a `timeWindow` and use it to load the data generated by Kafka connect.
   - I will be easy to switch to delta streamer with DFS source, but a little bit tricky to
switch to Kafka, because there is a delay caused by the Kafka connect. 
   
   So right now, if I switch to delta streamer directly ingesting from Kafka, I will start
from the `LATEST` checkpoint, and `EARLIEST` is not possible because my Kafka cluster retention
time is pretty long. 
   The data loss I mentioned in the few hours gap between the commit I switched from my homebrew
Spark data source reader to delta streamer. All I need to do is in this commit, I run the
delta streamer first to store the `LATEST` checkpoint, then run my data source reader to read
the data in those few hours gap. Only need one parallel run here then I will be good to go
with the delta streamer.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message