浏览代码

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
Akira Ajisaka 5 年之前
父节点
当前提交
b80f020886
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      start-build-env.sh

+ 1 - 1
start-build-env.sh

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