[jira] [Created] (HADOOP-15802) start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry

2018-09-28 Thread Jon Boone (JIRA)
Jon Boone created HADOOP-15802:
--

 Summary: 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


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



[jira] [Commented] (HADOOP-15802) start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry

2018-10-13 Thread Jon Boone (JIRA)


[ 
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



[jira] [Updated] (HADOOP-15802) start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry

2018-10-13 Thread Jon Boone (JIRA)


 [ 
https://issues.apache.org/jira/browse/HADOOP-15802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jon Boone updated HADOOP-15802:
---
Attachment: HADOOP-15802.001.patch
Status: Patch Available  (was: Open)

> 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
> Attachments: HADOOP-15802.001.patch
>
>
> 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



[jira] [Commented] (HADOOP-15802) start-build-env.sh creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry

2018-10-13 Thread Jon Boone (JIRA)


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

Jon Boone commented on HADOOP-15802:


It doesn't appear that there are any tests for _start-build-env.sh_, so I 
didn't modify or add any.

> 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
> Attachments: HADOOP-15802.001.patch
>
>
> 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



[jira] [Commented] (HADOOP-15912) start-build-env.sh still creates an invalid /etc/sudoers.d/hadoop-build-${USER_ID} file entry after HADOOP-15802

2018-11-08 Thread Jon Boone (JIRA)


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

Jon Boone commented on HADOOP-15912:


Agreed.  That is the most general solution.

> start-build-env.sh still creates an invalid 
> /etc/sudoers.d/hadoop-build-${USER_ID} file entry after HADOOP-15802
> 
>
> Key: HADOOP-15912
> URL: https://issues.apache.org/jira/browse/HADOOP-15912
> Project: Hadoop Common
>  Issue Type: Bug
>  Components: build
> Environment: CentOS 7.5 and Docker 1.13.1
>Reporter: Akira Ajisaka
>Assignee: Akira Ajisaka
>Priority: Major
> Attachments: HADOOP-15912.01.patch
>
>
> {noformat}
> RUN echo -e "${USER_NAME}\tALL=NOPASSWD: ALL" > 
> "/etc/sudoers.d/hadoop-build-${USER_ID}"
> {noformat}
> creates
> {noformat}
> -e ALL=NOPASSWD: ALL
> {noformat}



--
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