You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/11/20 07:14:23 UTC
[GitHub] [hudi] kywe665 opened a new pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
kywe665 opened a new pull request #4052:
URL: https://github.com/apache/hudi/pull/4052
## What is the purpose of the pull request
Add documentation for the HoodieCleaner utility
## Brief change log
- added docs for HoodieCleaner utility
## Verify this pull request
This pull request is docs changes only
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] kywe665 commented on pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
kywe665 commented on pull request #4052:
URL: https://github.com/apache/hudi/pull/4052#issuecomment-974608013
I will review this doc and create implementation examples with @bhasudha next week.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bhasudha merged pull request #4052: [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
bhasudha merged pull request #4052:
URL: https://github.com/apache/hudi/pull/4052
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bhasudha commented on a change in pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
bhasudha commented on a change in pull request #4052:
URL: https://github.com/apache/hudi/pull/4052#discussion_r754716627
##########
File path: website/docs/hoodie_cleaner.md
##########
@@ -0,0 +1,60 @@
+---
+title: Cleaning
+toc: true
+---
+
+Hoodie Cleaner is a utility that helps you reclaim space and keep your storage costs in check. Apache Hudi provides
+snapshot isolation between writers and readers by managing multiple files with MVCC concurrency. These file versions
+provide history and enable time travel and rollbacks, but it is important to manage how much history you keep to balance your costs.
+
+[Automatic Hudi cleaning](/docs/configurations/#hoodiecleanautomatic) is enabled by default. Cleaning is invoked immediately after
+each commit, to delete older file slices. It's recommended to leave this enabled to ensure metadata and data storage growth is bounded.
+
+### Cleaning Retention Policies
+When cleaning old files, you should be careful not to remove files that are being actively used by long running queries.
+Hudi cleaner currently supports the below cleaning policies to keep a certain number of commits or file versions:
+
+- **KEEP_LATEST_COMMITS**: This is the default policy. This is a temporal cleaning policy that ensures the effect of
+having lookback into all the changes that happened in the last X commits. Suppose a writer is ingesting data
+into a Hudi dataset every 30 minutes and the longest running query can take 5 hours to finish, then the user should
+retain atleast the last 10 commits. With such a configuration, we ensure that the oldest version of a file is kept on
+disk for at least 5 hours, thereby preventing the longest running query from failing at any point in time. Incremental cleaning is also possible using this policy.
+- **KEEP_LATEST_FILE_VERSIONS**: This policy has the effect of keeping N number of file versions irrespective of time.
+This policy is useful when it is known how many MAX versions of the file does one want to keep at any given time.
+To achieve the same behaviour as before of preventing long running queries from failing, one should do their calculations
+based on data patterns. Alternatively, this policy is also useful if a user just wants to maintain 1 latest version of the file.
+
+### Example
+**<TODO - Insert example implementation here>**
+
+### Configurations
+For details about all possible configurations and their default values see the [configuration docs](https://hudi.apache.org/docs/configurations#compaction-configs).
Review comment:
`https://hudi.apache.org/docs/configurations#Compaction-Configs` instead of `https://hudi.apache.org/docs/configurations#compaction-configs`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] bhasudha commented on a change in pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
bhasudha commented on a change in pull request #4052:
URL: https://github.com/apache/hudi/pull/4052#discussion_r754723965
##########
File path: website/docs/hoodie_cleaner.md
##########
@@ -0,0 +1,60 @@
+---
+title: Cleaning
+toc: true
+---
+
+Hoodie Cleaner is a utility that helps you reclaim space and keep your storage costs in check. Apache Hudi provides
+snapshot isolation between writers and readers by managing multiple files with MVCC concurrency. These file versions
+provide history and enable time travel and rollbacks, but it is important to manage how much history you keep to balance your costs.
+
+[Automatic Hudi cleaning](/docs/configurations/#hoodiecleanautomatic) is enabled by default. Cleaning is invoked immediately after
+each commit, to delete older file slices. It's recommended to leave this enabled to ensure metadata and data storage growth is bounded.
+
+### Cleaning Retention Policies
+When cleaning old files, you should be careful not to remove files that are being actively used by long running queries.
+Hudi cleaner currently supports the below cleaning policies to keep a certain number of commits or file versions:
+
+- **KEEP_LATEST_COMMITS**: This is the default policy. This is a temporal cleaning policy that ensures the effect of
+having lookback into all the changes that happened in the last X commits. Suppose a writer is ingesting data
+into a Hudi dataset every 30 minutes and the longest running query can take 5 hours to finish, then the user should
+retain atleast the last 10 commits. With such a configuration, we ensure that the oldest version of a file is kept on
+disk for at least 5 hours, thereby preventing the longest running query from failing at any point in time. Incremental cleaning is also possible using this policy.
+- **KEEP_LATEST_FILE_VERSIONS**: This policy has the effect of keeping N number of file versions irrespective of time.
+This policy is useful when it is known how many MAX versions of the file does one want to keep at any given time.
+To achieve the same behaviour as before of preventing long running queries from failing, one should do their calculations
+based on data patterns. Alternatively, this policy is also useful if a user just wants to maintain 1 latest version of the file.
+
+### Example
+**<TODO - Insert example implementation here>**
+
+### Configurations
+For details about all possible configurations and their default values see the [configuration docs](https://hudi.apache.org/docs/configurations#compaction-configs).
+
+### Run Independently
+Hoodie Cleaner can be run as a separate process or along with your data ingestion. In case you want to run it along with
+ingesting data, configs are available which enable you to run it [synchronously or asynchronously](https://hudi.apache.org/docs/configurations#withAsyncClean).
Review comment:
(https://hudi.apache.org/docs/configurations#hoodiecleanasync instead of (https://hudi.apache.org/docs/configurations#withAsyncClean).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] kywe665 commented on pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
kywe665 commented on pull request #4052:
URL: https://github.com/apache/hudi/pull/4052#issuecomment-974608013
I will review this doc and create implementation examples with @bhasudha next week.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] kywe665 commented on a change in pull request #4052: [WIP] - [HUDI-2805] - Docs for HoodieCleaner
Posted by GitBox <gi...@apache.org>.
kywe665 commented on a change in pull request #4052:
URL: https://github.com/apache/hudi/pull/4052#discussion_r754737158
##########
File path: website/docs/hoodie_cleaner.md
##########
@@ -0,0 +1,60 @@
+---
+title: Cleaning
+toc: true
+---
+
+Hoodie Cleaner is a utility that helps you reclaim space and keep your storage costs in check. Apache Hudi provides
+snapshot isolation between writers and readers by managing multiple files with MVCC concurrency. These file versions
+provide history and enable time travel and rollbacks, but it is important to manage how much history you keep to balance your costs.
+
+[Automatic Hudi cleaning](/docs/configurations/#hoodiecleanautomatic) is enabled by default. Cleaning is invoked immediately after
+each commit, to delete older file slices. It's recommended to leave this enabled to ensure metadata and data storage growth is bounded.
+
+### Cleaning Retention Policies
+When cleaning old files, you should be careful not to remove files that are being actively used by long running queries.
+Hudi cleaner currently supports the below cleaning policies to keep a certain number of commits or file versions:
+
+- **KEEP_LATEST_COMMITS**: This is the default policy. This is a temporal cleaning policy that ensures the effect of
+having lookback into all the changes that happened in the last X commits. Suppose a writer is ingesting data
+into a Hudi dataset every 30 minutes and the longest running query can take 5 hours to finish, then the user should
+retain atleast the last 10 commits. With such a configuration, we ensure that the oldest version of a file is kept on
+disk for at least 5 hours, thereby preventing the longest running query from failing at any point in time. Incremental cleaning is also possible using this policy.
+- **KEEP_LATEST_FILE_VERSIONS**: This policy has the effect of keeping N number of file versions irrespective of time.
+This policy is useful when it is known how many MAX versions of the file does one want to keep at any given time.
+To achieve the same behaviour as before of preventing long running queries from failing, one should do their calculations
+based on data patterns. Alternatively, this policy is also useful if a user just wants to maintain 1 latest version of the file.
+
+### Example
+**<TODO - Insert example implementation here>**
+
+### Configurations
+For details about all possible configurations and their default values see the [configuration docs](https://hudi.apache.org/docs/configurations#compaction-configs).
Review comment:
done
##########
File path: website/docs/hoodie_cleaner.md
##########
@@ -0,0 +1,60 @@
+---
+title: Cleaning
+toc: true
+---
+
+Hoodie Cleaner is a utility that helps you reclaim space and keep your storage costs in check. Apache Hudi provides
+snapshot isolation between writers and readers by managing multiple files with MVCC concurrency. These file versions
+provide history and enable time travel and rollbacks, but it is important to manage how much history you keep to balance your costs.
+
+[Automatic Hudi cleaning](/docs/configurations/#hoodiecleanautomatic) is enabled by default. Cleaning is invoked immediately after
+each commit, to delete older file slices. It's recommended to leave this enabled to ensure metadata and data storage growth is bounded.
+
+### Cleaning Retention Policies
+When cleaning old files, you should be careful not to remove files that are being actively used by long running queries.
+Hudi cleaner currently supports the below cleaning policies to keep a certain number of commits or file versions:
+
+- **KEEP_LATEST_COMMITS**: This is the default policy. This is a temporal cleaning policy that ensures the effect of
+having lookback into all the changes that happened in the last X commits. Suppose a writer is ingesting data
+into a Hudi dataset every 30 minutes and the longest running query can take 5 hours to finish, then the user should
+retain atleast the last 10 commits. With such a configuration, we ensure that the oldest version of a file is kept on
+disk for at least 5 hours, thereby preventing the longest running query from failing at any point in time. Incremental cleaning is also possible using this policy.
+- **KEEP_LATEST_FILE_VERSIONS**: This policy has the effect of keeping N number of file versions irrespective of time.
+This policy is useful when it is known how many MAX versions of the file does one want to keep at any given time.
+To achieve the same behaviour as before of preventing long running queries from failing, one should do their calculations
+based on data patterns. Alternatively, this policy is also useful if a user just wants to maintain 1 latest version of the file.
+
+### Example
+**<TODO - Insert example implementation here>**
+
+### Configurations
+For details about all possible configurations and their default values see the [configuration docs](https://hudi.apache.org/docs/configurations#compaction-configs).
+
+### Run Independently
+Hoodie Cleaner can be run as a separate process or along with your data ingestion. In case you want to run it along with
+ingesting data, configs are available which enable you to run it [synchronously or asynchronously](https://hudi.apache.org/docs/configurations#withAsyncClean).
Review comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org