hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12637) Docker building support doesn't support root user
Date Mon, 14 Dec 2015 09:49:46 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-12637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15055715#comment-15055715
] 

Kai Zheng commented on HADOOP-12637:
------------------------------------

Thanks [~nielsbasjes] for the comment! I agree it's ok not to support root user, and update
the building doc. Considering the following codes assumes it's normal user (not root), I thought
it would be good to detect if it's root user or not, if it is then fails fast. 

In *start-build-env.sh*:
{code}
RUN groupadd --non-unique -g ${GROUP_ID} ${USER_NAME}
RUN useradd -g ${GROUP_ID} -u ${USER_ID} -k /root -m ${USER_NAME}
ENV HOME /home/${USER_NAME}
...
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}" \
  "hadoop-build-${USER_NAME}"
{code}

> Docker building support doesn't support root user
> -------------------------------------------------
>
>                 Key: HADOOP-12637
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12637
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Kai Zheng
>            Assignee: Kai Zheng
>
> According to the instructions in *BUILDING.txt*, started the docker building but as root
user. and then found it doesn't work. The related scripts need to be improved to support root
user or if we won't, better to update *BUILDING.txt* to explicitly say root user isn't supported.
This may save somebody's time.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message