[
https://issues.apache.org/jira/browse/HADOOP-14818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gergely Novák updated HADOOP-14818:
-----------------------------------
Attachment: HADOOP-14818.001.patch
What do you think about simply skipping this check for -h/--help commands?
Please check the attached patch.
> Can not show help message of namenode/datanode/nodemanager when process
> started.
> --------------------------------------------------------------------------------
>
> Key: HADOOP-14818
> URL: https://issues.apache.org/jira/browse/HADOOP-14818
> Project: Hadoop Common
> Issue Type: Improvement
> Components: bin
> Affects Versions: 3.0.0-beta1
> Reporter: Wenxin He
> Priority: Minor
> Attachments: HADOOP-14818.001.patch
>
>
> We should always get the help message whenever the process is started or not.
> But now,
> when datanode starts, we get an error message:
> {noformat}
> hadoop# bin/hdfs datanode -h
> datanode is running as process 1701. Stop it first.
> {noformat}
> when datanode stops, we get what we want:
> {noformat}
> hadoop# bin/hdfs --daemon stop datanode
> hadoop# bin/hdfs datanode -h
> Usage: hdfs datanode [-regular | -rollback | -rollingupgrade rollback ]
> -regular : Normal DataNode startup (default).
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]