You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Anuja Mandlecha (JIRA)" <ji...@apache.org> on 2015/01/16 12:04:35 UTC

[jira] [Commented] (CASSANDRA-8493) nodetool options parsing doesn't allow "-h
    [ https://issues.apache.org/jira/browse/CASSANDRA-8493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14280119#comment-14280119 ] 

Anuja Mandlecha commented on CASSANDRA-8493:
--------------------------------------------

I fired simple $ ./nodetool command using cassandra 2.1.2 and it gave me following console output:

user@ubuntu-vm:~/apache-cassandra-2.1.2/bin$ ./nodetool
usage: nodetool [(-u <username> | --username <username>)]
        [(-pw <password> | --password <password>)] [(-h <host> | --host <host>)]
        [(-p <port> | --port <port>)]
        [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)] <command>
        [<args>]

The most commonly used nodetool commands are:

So according to the usage, the command (ring in your example) should always come at the end as:
$ ./nodetool -h 127.0.0.1 ring 

> nodetool options parsing doesn't allow "-h <hostname" to be at the end anymore
> ------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-8493
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8493
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jeremiah Jordan
>            Priority: Minor
>
> This used to work:
> {noformat}
> $ ./nodetool ring -h 127.0.0.1
> Error: The keyspace 127.0.0.1, does not exist
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)