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

Build cluster plan and execute this plan at once for HoodieClusteringJob

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • None

    Description

      For now, Hudi can let users submit a HoodieClusteringJob to build a clustering plan or execute a clustering plan through --schedule or --instant-time config.

      If users want to trigger a clustering job, he has to 

      1. Submit a HoodieClusteringJob to build a clustering job through --schedule config
      2. Copy the created clustering Instant time form Log info.
      3. Submit the HoodieClusteringJob again to execute this created clustering plan through --instant-time config.

      The pain point is that there are too many steps when trigger a clustering and need to copy and paste the instant time from log file manually so that we can't make it automatically.

       

      I just raise a PR to offer a new config named --mode or -m in short 

      --mode remarks
      execute Execute a cluster plan at given instant which means --instant-time is needed here. default value. 
      schedule Make a clustering plan.
      scheduleAndExecute Make a cluster plan first and execute that plan immediately

      Now users can use --mode scheduleAndExecute to Build cluster plan and execute this plan at once using HoodieClusteringJob.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhangyue19921010 Yue Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: