Details
Description
YARN-7782 enabled the Docker runtime feature to remap the username to uid:gid form for launching Docker containers. The feature does an id -u and id -G to get the UID and GIDs. This fails with the test user, as that user doesn't actually exist on the host.
[ERROR] testContainerLaunchWithCustomNetworks(org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime) Time elapsed: 0.411 s <<< ERROR!
org.apache.hadoop.yarn.server.nodemanager.containermanager.runtime.ContainerExecutionException:
ExitCodeException exitCode=1: id: 'run_as_user': no such user
at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime.getUserIdInfo(DockerLinuxContainerRuntime.java:711)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime.launchContainer(DockerLinuxContainerRuntime.java:757)
at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime.testContainerLaunchWithCustomNetworks(TestDockerContainerRuntime.java:599)