From 9a14ccc74ed60f17eae06fe8f2a0d4a6ef755a2f Mon Sep 17 00:00:00 2001 From: Akira Ajisaka Date: Wed, 12 Feb 2020 14:06:23 +0900 Subject: [PATCH] HADOOP-16849. start-build-env.sh behaves incorrectly when username is numeric only. Contributed by Jihyun Cho. (cherry picked from commit 9709afe67d8ed45c3dfb53e45fe1efdc0814ac6c) Conflicts: start-build-env.sh --- start-build-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start-build-env.sh b/start-build-env.sh index 18e3a8c38c4..d3d26f79a6d 100755 --- a/start-build-env.sh +++ b/start-build-env.sh @@ -46,5 +46,5 @@ docker run --rm=true -t -i \ -v "${PWD}:/home/${USER_NAME}/hadoop" \ -w "/home/${USER_NAME}/hadoop" \ -v "${HOME}/.m2:/home/${USER_NAME}/.m2" \ - -u "${USER_NAME}" \ + -u "${USER_ID}" \ "hadoop-build-${USER_ID}"