forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
3.4 KiB
3.4 KiB
CLEAN
Function
Cleans instants on the Timeline based on configurations and deletes historical version files to reduce the data storage and read/write pressure of Hudi tables.
Syntax
RUN CLEAN ON tableIdentifier;
RUN CLEAN ON tablelocation;
Parameter Description
Parameter |
Description |
---|---|
tableIdentifier |
Name of the Hudi table |
tablelocation |
Storage path of the Hudi table |
Example
run clean on h1; run clean on "/tmp/hudi/h1";
Precautions
Only the table owner can perform the clean operation on a table.
To modify the default cleaning parameters, run set commands to configure the parameters such as the number of commits to be retained.
System Response
You can view command execution results in the driver log or on the client.
Parent topic: Hudi DML