Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

difin
Copy link
Contributor

@difin difin commented Oct 10, 2024

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

Copy link

sonarcloud bot commented Oct 11, 2024

@@ -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",
Copy link
Member

@deniskuzZ deniskuzZ Oct 14, 2024

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

Copy link
Contributor Author

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.

@difin difin changed the title HIVE-28536: Iceberg: automatically assign Iceberg tables for compacti… HIVE-28536: Iceberg: support for assigning manual compaction requests on custom compaction pools Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants