Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-1348

Provide option to clean up DFS sources after each commit

    XMLWordPrintableJSON

Details

    Description

      Since DeltaStreamer makes heavily use of file listing, if the source contains a lot of tiny files, this could  quickly become a bottle neck. We need a way to delete/archive files once processed by DeltaStreamer. 

      It seems like the best way to reliably clean up the source is after DeltaSync commit the checkpoint successfully. We could add a new public method to Source e.g. `postCommit()` and invoke it after each successful commit 

      Reference:

      https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html#input-sources

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vho Vu Ho
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: