Yue Zhang created HUDI-2164:
-------------------------------

             Summary: Build cluster plan and execute this plan at once for 
HoodieClusteringJob
                 Key: HUDI-2164
                 URL: https://issues.apache.org/jira/browse/HUDI-2164
             Project: Apache Hudi
          Issue Type: Task
            Reporter: Yue Zhang


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 
 # Submit a HoodieClusteringJob to build a clustering job through --schedule 
config
 # Copy the created clustering Instant time form Log info.
 # 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.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to