[ 
https://issues.apache.org/jira/browse/HDDS-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613936#comment-16613936
 ] 

Arpit Agarwal edited comment on HDDS-457 at 9/13/18 7:02 PM:
-------------------------------------------------------------

afaik this applies to all Hadoop services. We'll need to fix the shared shell 
scripts. E.g. by treating the {{--help}}, {{-help}} and {{-h}} flags specially 
and bypass the 'process running' check.

I recommend you verify this problem exists with other services like NameNode 
and make this a Hadoop Common jira.


was (Author: arpitagarwal):
afaik this applies to all Hadoop services. We'll need to fix the shared shell 
scripts. E.g. by treating the {{-help}}, {{--help}} and {{-h}} flags specially 
and bypass the 'process running' check.

I recommend you verify this problem exists with other services like NameNode 
and make this a Hadoop Common jira.

> ozone om -help, scm -help commands cant run unless the service is stopped 
> --------------------------------------------------------------------------
>
>                 Key: HDDS-457
>                 URL: https://issues.apache.org/jira/browse/HDDS-457
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>            Reporter: Namit Maheshwari
>            Priority: Major
>
> {code:java}
> ➜ ozone-0.3.0-SNAPSHOT bin/ozone om -help
> om is running as process 89242. Stop it first.
> ➜ ozone-0.3.0-SNAPSHOT bin/ozone scm -help
> scm is running as process 73361. Stop it first.
> {code}
> It runs fine once the service is stopped
> {code:java}
> ➜ ozone-0.3.0-SNAPSHOT bin/ozone --daemon stop scm
> ➜ ozone-0.3.0-SNAPSHOT bin/ozone scm -help
> Usage:
> ozone scm [genericOptions] [ -init [ -clusterid <cid> ] ]
> ozone scm [genericOptions] [ -genclusterid ]
> ozone scm [ -help ]
> Generic options supported are:
> -conf <configuration file> specify an application configuration file
> -D <property=value> define a value for a given property
> -fs <file:///|hdfs://namenode:port> specify default filesystem URL to use, 
> overrides 'fs.defaultFS' property from configurations.
> -jt <local|resourcemanager:port> specify a ResourceManager
> -files <file1,...> specify a comma-separated list of files to be copied to 
> the map reduce cluster
> -libjars <jar1,...> specify a comma-separated list of jar files to be 
> included in the classpath
> -archives <archive1,...> specify a comma-separated list of archives to be 
> unarchived on the compute machines
> The general command line syntax is:
> command [genericOptions] [commandOptions]
> {code}
>  
> Ideally help command should run fine without the service being stopped.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to