-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HIVE-28536: Iceberg: support for assigning manual compaction requests on custom compaction pools #5503
base: master
Are you sure you want to change the base?
Conversation
a69ebc9
to
5729291
Compare
5729291
to
447150a
Compare
Quality Gate passedIssues Measures |
@@ -2234,7 +2234,9 @@ public static enum ConfVars { | |||
"If this is set to true the URI for auth will have the default location masked with DEFAULT_TABLE_LOCATION"), | |||
HIVE_ICEBERG_ALLOW_DATAFILES_IN_TABLE_LOCATION_ONLY("hive.iceberg.allow.datafiles.in.table.location.only", false, | |||
"If this is set to true, then all the data files being read should be withing the table location"), | |||
|
|||
HIVE_ICEBERG_COMPACTOR_POOL_NAME("hive.iceberg.compactor.pool.name", "default", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's not create Hive config for that. can we use tbl properties instead?
reg the default value, maybe iceberg-default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Now if the pool name is not provided in the compaction command it attempts to get it from the table property hive.compactor.worker.pool
, otherwise compacts on the default pool.
447150a
to
d8d47f7
Compare
d8d47f7
to
2aad09f
Compare
…on on a custom compaction pool.
2aad09f
to
2110fc7
Compare
What changes were proposed in this pull request?
Support for assigning manual compaction requests on custom compaction pools by using table property
hive.compactor.worker.pool
.Why are the changes needed?
On downstream environments sometimes a single HMS is used with several HS2s with enabled compaction workers, where some HS2s are running on Hive code versions that don't have Iceberg compaction functionality. It is needed to prevent these HS2s from attempting to process Iceberg compaction requests. This PR enables solving this problem using custom compaction pooling.
Does this PR introduce any user-facing change?
Yes, it adds the ability of compacting on custom compaction pool whose name is specified in a table property when processing manual compaction requests.
Is the change a dependency upgrade?
No
How was this patch tested?
Updated q-tests