hudi icon indicating copy to clipboard operation
hudi copied to clipboard

Facing issue - Unable to find previous checkpoint. Please double check if this table was indeed built via delta streamer

Open anchalkataria opened this issue 7 years ago • 5 comments

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.

anchalkataria avatar Aug 14 '19 18:08 anchalkataria

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 :) ?

vinothchandar avatar Aug 15 '19 11:08 vinothchandar

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

anchalkataria avatar Aug 16 '19 19:08 anchalkataria

@vinothchandar Hey could you please help me out with the paths i have mentioned in above comment, its little urgent.

anchalkataria avatar Aug 19 '19 03:08 anchalkataria

@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?

vinothchandar avatar Aug 19 '19 12:08 vinothchandar

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

vinothchandar avatar Aug 22 '19 04:08 vinothchandar