Le 3/19/12 8:00 PM, Harsh J a écrit : > The right property for your version of Hadoop is > "dfs.permissions.supergroup". Change the property name, restart NN, > and your 'root' user should behave as a superuser afterwards.
It works thanks! Wiki is however wrong, I gonna create a bug to fix the template and documentation > Or, you can just do "sudo -u hdfs <command>" as root. > > On Mon, Mar 19, 2012 at 11:02 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 >> >> > > -- Olivier Sallou IRISA / University of Rennes 1 Campus de Beaulieu, 35000 RENNES - FRANCE Tel: 02.99.84.71.95 gpg key id: 4096R/326D8438 (keyring.debian.org) Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
