[
https://issues.apache.org/jira/browse/HADOOP-16335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Masatake Iwasaki resolved HADOOP-16335.
---------------------------------------
Resolution: Invalid
I think this is coufiguration issue. If you define env var
HDFS_NAMENODE_USER=root in hadoop-env.sh or somewhere and run the command by
another user, you will get the error.
{noformat}
$ HDFS_NAMENODE_USER=root bin/hadoop namenode -format
WARNING: Use of this script to execute namenode is deprecated.
WARNING: Attempting to execute replacement "hdfs namenode" instead.
ERROR: namenode can only be executed by root.
{noformat}
I'm closing this as invalid. Please reopen if this turns out to be bug in
scripts.
> ERROR: namenode can only be executed by root while executing "hdfs namenode
> -format"
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-16335
> URL: https://issues.apache.org/jira/browse/HADOOP-16335
> Project: Hadoop Common
> Issue Type: Bug
> Components: common
> Affects Versions: 3.2.0
> Reporter: Lakshmi Narayanan G
> Priority: Trivial
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]