Skip to content

Commit

Permalink
Updated /etc/hosts file
Browse files Browse the repository at this point in the history
  • Loading branch information
morazow committed Aug 10, 2023
1 parent 24089fa commit 70c839f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,23 @@ class AlluxioExportImportIT extends BaseIntegrationTest {
s"Could not change '$bucket' folder permissions in Alluxio container."
)
}
val mainIPv4Address = getContainerIPv4Address(alluxioMainContainer)
exitCode = exasolContainer.execInContainer(
"/bin/sh",
"-c",
s"echo '$mainIPv4Address alluxio-main' >> /etc/hosts"
)
if (exitCode.getExitCode() != 0) {
throw new RuntimeException("Failed to update `/etc/hosts` file in Exasol container with Alluxio main IPv4 address.")
}
val workerIPv4Address = getContainerIPv4Address(alluxioWorkerContainer)
exitCode = exasolContainer.execInContainer(
"/bin/sh",
"-c",
s"echo '$workerIPv4Address alluxio-worker' >> /etc/hosts"
)
if (exitCode.getExitCode() != 0) {
throw new RuntimeException("Could not update `/etc/hosts` file in Exasol container.")
throw new RuntimeException("Failed to update `/etc/hosts` file in Exasol container with Alluxio worker IPv4 address.")
}
}

Expand Down

0 comments on commit 70c839f

Please sign in to comment.