Explorar o código

HADOOP-16849. start-build-env.sh behaves incorrectly when username is numeric only. Contributed by Jihyun Cho.

Akira Ajisaka %!s(int64=5) %!d(string=hai) anos
pai
achega
9709afe67d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      start-build-env.sh

+ 1 - 1
start-build-env.sh

@@ -89,5 +89,5 @@ docker run --rm=true $DOCKER_INTERACTIVE_RUN \
   -w "/home/${USER_NAME}/hadoop" \
   -v "${HOME}/.m2:/home/${USER_NAME}/.m2${V_OPTS:-}" \
   -v "${HOME}/.gnupg:/home/${USER_NAME}/.gnupg${V_OPTS:-}" \
-  -u "${USER_NAME}" \
+  -u "${USER_ID}" \
   "hadoop-build-${USER_ID}" "$@"