Skip to content

HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization - #6640

Open
hemanthumashankar0511 wants to merge 18 commits into
apache:masterfrom
hemanthumashankar0511:tez_on_yarn_it
Open

HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization#6640
hemanthumashankar0511 wants to merge 18 commits into
apache:masterfrom
hemanthumashankar0511:tez_on_yarn_it

Conversation

@hemanthumashankar0511

@hemanthumashankar0511 hemanthumashankar0511 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Adds an opt-in itests/tez-yarn-it module with a Docker/Testcontainers-based HDFS+YARN cluster and an end-to-end test that verifies hive-exec.jar is localized when Tez runs on YARN.

Why are the changes needed?

MiniTezCluster / TestMiniTezCliDriver do not exercise real YARN resource localization, so regressions like skipping hive-exec.jar from commonLocalResources are not caught today.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Ran locally with mvn test -Pitests,tez-yarn -pl itests/tez-yarn-it -Dtest=TestTezYarnLocalization#testQuerySucceedsWithAppJar, and also validated on GitHub Actions (ubuntu-latest, native Linux amd64) using the same Maven command after mvn clean install -DskipTests -Pitests -pl itests/tez-yarn-it -am; the full end-to-end test is reliable on native Linux and macOS

@hemanthumashankar0511 hemanthumashankar0511 changed the title [WIP]HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization (DO NOT REVIEW) [WIP]HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization Jul 28, 2026
@hemanthumashankar0511 hemanthumashankar0511 changed the title [WIP]HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization HIVE-29483: Implement an integration testing mechanism with real Tez on Yarn including resource localization Jul 28, 2026
@hemanthumashankar0511
hemanthumashankar0511 marked this pull request as ready for review July 28, 2026 09:52
import java.nio.file.Files;
import java.nio.file.Path;

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we don't need this comment entirely naming itself quite self explainatory

*
* Run with: mvn -Pitests,tez-yarn -pl itests/tez-yarn-it -Dtest=TezYarnClusterContainerTest test
*/
public class TezYarnClusterContainerTest {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use TestTezYarnClusterContainer

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please get rid of these large chunk of explainatory comments
try to keep them coincise to convey the purpose wherever the methods and classes are complex enough and need some explicit explanation
please avoid these * Run with: kind of comments

import java.util.Set;
import java.util.stream.Stream;

/**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same https://github.com/apache/hive/pull/6640/changes#r3681063334
and here comments are explaining the same redundant thing over and over so please remove those

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ramitg254 Thanks for pointing it out..I'll get rid of these unwanted comments

@sonarqubecloud

Copy link
Copy Markdown

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