fix(emr): run steps on emr-6.14.0 clusters with Hive (#8017)

Every step on a cluster with Hive on emr-6.14.0 failed, as making the
image such a cluster runs in copied /etc/tez-ui, which that release's
Hive image doesn't have.

The folder holds only the Tez UI's configs.js, and nothing in Floci
serves the Tez UI, so it is no longer copied. On later releases, the
Tez UI's link to it is left dangling, in a folder Tez skips.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-11 10:53:24 -06:00
1 parent d250eb276e
commit 0716f162f5
2 files changed
+7 -1

No files matched your search

@@ -67,7 +67,6 @@ public class EmrReleaseImages implements ReleaseImages {
new Copy("/usr/lib/bigtop-groovy", "/usr/lib"),
new Copy("/etc/hive", "/etc"),
new Copy("/etc/tez", "/etc"),
new Copy("/etc/tez-ui", "/etc"),
new Copy(EMR_SHARE + "/s3-dist-cp", EMR_SHARE),
new Copy("/usr/bin/hive", "/usr/bin"),
new Copy("/usr/bin/beeline", "/usr/bin"),
@@ -102,6 +102,13 @@ class EmrReleaseImagesTest {
entries(copied(conf, EmrReleaseImages.Copy.to("/etc/hadoop/conf", "/etc/hadoop/conf.hive"))));
}
@Test
void theTezUisConfigurationStaysBehindAsEmr6140sHiveImageHasNone() {
// Copying a path the Hive image lacks fails making the image, and every step of the release's clusters with
// Hive with it. Only a served Tez UI reads this one, and nothing serves it.
assertTrue(EmrReleaseImages.COPIES.stream().noneMatch(copy -> copy.from().startsWith("/etc/tez-ui")));
}
@Test
void theHiveImagesHadoopConfigurationGoesWhereHiveRunsWithIt() {
assertTrue(EmrReleaseImages.COPIES.contains(new EmrReleaseImages.Copy("/etc/hadoop/conf", "/etc/hadoop",