You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Masatake Iwasaki (JIRA)" <ji...@apache.org> on 2019/08/15 05:39:00 UTC
[jira] [Resolved] (HADOOP-16335) ERROR: namenode can only be
executed by root while executing "hdfs namenode -format"
[ 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: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org