Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop, mail # user - Problem setting super user


Copy link to this message
-
Re: Problem setting super user
Mathias Herberts 2012-03-19, 17:39
does it work under user hdfs?
On Mar 19, 2012 6:32 PM, "Olivier Sallou" <[EMAIL PROTECTED]> wrote:

> Hi,
> I have installed Hadoop 1.0 using .deb package.
> I tried to configure superuser groups but it somehow fail. I do not know
> what's wrong:
>
> I expect root to be able to run hadoop dfsadmin -report command.
>
> # id hdfs
> uid=201(hdfs) gid=201(hdfs) groupes=123(hadoop),201(hdfs)
> # id root
> uid=0(root) gid=0(root) groupes=123(hadoop),0(root)
>
> Both my hdfs user (superuser by default) and my root user are in group
> hadoop.
>
> In hdfs-site.xml I have:
>  <property>
>    <name>dfs.permissions.superusergroup</name>
>    <value>hadoop</value>
>    <description>The name of the group of super-users.</description>
>  </property>
>
> I tried running refreshServiceAcl and
> refreshSuperUserGroupsConfiguration as hdfs, but I still have the error:
> root# hadoop dfsadmin -report
> report: org.apache.hadoop.security.AccessControlException: Access denied
> for user root. Superuser privilege is required
>
> Has anyone an idea?
>
> Thanks!
>
> Olivier
>
> --
>
> gpg key id: 4096R/326D8438  (keyring.debian.org)
> Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438
>
>
>