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

Jon Boone commented on HADOOP-15802:
------------------------------------

My first thought was to add the '-e' option to the echo command being called in 
line 64:

??RUN echo "${USER_NAME}\tALL=NOPASSWD: ALL" > 
"/etc/sudoers.d/hadoop-build-${USER_ID}"??

as this command is running inside a docker container which is running Linux.

> start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} 
> file entry
> ---------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15802
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15802
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: common
>         Environment: Ubuntu 18.04 x86_64 running in a VM with 4 CPUs / 8 GBs 
> RAM / 128 GB disk.  
>            Reporter: Jon Boone
>            Priority: Minor
>
> In my Ubuntu 18.04 dev VM, I cloned the hadoop repo and ran the 
> start-build-env.sh script.  Once the docker build was completed and the 
> container running, I tried to sudo and it failed.  Upon investigation, I 
> discovered that it was creating an entry in 
> /etc/sudoers.d/hadoop-build-${USER_ID} that contained the characters '\t' 
> rather than a tab.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to