You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Somchai LIMSIRORATANA (JIRA)" <ji...@apache.org> on 2014/01/11 11:29:52 UTC

[jira] [Commented] (HADOOP-8716) Users/Groups are not created during installation of DEB package

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

Somchai LIMSIRORATANA commented on HADOOP-8716:
-----------------------------------------------

In the preinst script file of the package. The command:

getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -g 123 -r hadoop

should be changed to:

getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/addgroup -r hadoop

> Users/Groups are not created during installation of DEB package
> ---------------------------------------------------------------
>
>                 Key: HADOOP-8716
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8716
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>    Affects Versions: 1.0.3
>         Environment: Ubuntu 12.04 LTS
> x64
>            Reporter: Mikhail
>              Labels: install
>
> During DEB x64 package installation I got the following errors:
> mak@mak-laptop:~/Downloads$ sudo dpkg -i hadoop_1.0.3-1_x86_64.deb 
> [sudo] password for mak: 
> Selecting previously unselected package hadoop.
> (Reading database ... 195000 files and directories currently installed.)
> Unpacking hadoop (from hadoop_1.0.3-1_x86_64.deb) ...
> groupadd: GID '123' already exists
> Setting up hadoop (1.0.3) ...
> chown: invalid group: `root:hadoop'
> chown: invalid group: `root:hadoop'
> Processing triggers for ureadahead ...
> ureadahead will be reprofiled on next reboot
> Group with ID=123 already exists and belongs to 'saned' according to my /etc/group: saned:x:123:
> Also, during first run I see the following:
> mak@mak-laptop:~/Downloads$ sudo service hadoop-namenode start
>  * Starting Apache Hadoop Name Node server hadoop-namenode                                                  start-stop-daemon: user 'hdfs' not found
> This user wasn't created during installation.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)