Facing issue - Unable to find previous checkpoint. Please double check if this table was indeed built via delta streamer
Hi , I have migrated my existing dataset to hoodie dataset and then i am trying to run deltastreamer on the same dataset for further updates on it but it is not allowing me to so and throwing below error -
Exception in thread "main" java.util.concurrent.ExecutionException: com.uber.hoodie.exception.HoodieException: Unable to find previous checkpoint. Please double check if this table was indeed built via delta streamer at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895) at com.uber.hoodie.utilities.deltastreamer.AbstractDeltaStreamerService.waitForShutdown(AbstractDeltaStreamerService.java:69) at com.uber.hoodie.utilities.deltastreamer.HoodieDeltaStreamer.sync(HoodieDeltaStreamer.java:120) at com.uber.hoodie.utilities.deltastreamer.HoodieDeltaStreamer.main(HoodieDeltaStreamer.java:284) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52) at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:894) at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:198) at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:228) at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:137) at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Please suggest how can i run delta streamer tool on migrated dataset.
https://github.com/apache/incubator-hudi/pull/806 tries to fix this.. But has been inactive for a while.. Are you able to try it out? and if it works may be send a PR :) ?
Sure i will try the fix and also could you please let me know how i can change the partition value in s3 path while inserting/updating data through deltastreamer tool.
Currently the path gets created on s3 is like this s3://<basepath>/<partition-value>/files.parquet
I want the path to be s3://<basepath>/partition-field=<partition-value>/files.parquet
@vinothchandar Hey could you please help me out with the paths i have mentioned in above comment, its little urgent.
@anchalkataria changing the physical path like that is pretty involved and something we can't do today. May be we can start from what you are trying to do and see if there are other ways of achieving this?
Closing this. Please reopen a JIRA or another thread to pursue the partitioning config.. https://lists.apache.org/thread.html/2077029c2422048aab2268fe34914edbf706631ead7b3664b4cfa5f5@<dev.hudi.apache.org> shared a similar solution to this