Details
-
Improvement
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
Description
nodetool command tries to establish connection to the cassandra node before ensuring that the command is valid. Therefore, when no command is specified it will print (in the case when C* is not running)
$ bin/nodetool Failed to connect to '127.0.0.1:7199': Connection refused
That means we need to have a running instance of C* to check the available commands. But this is a syntax error and usage can be displayed (which is the result even if a C* is running) even without a C* instance. Probably, it would be better to make sure that the command sytnax is valid and print usage if not. By doing this, we can easily check the available commands.
Additionally, same should apply for the help command. Since, help will not be connecting to the C* instance, we should not have a dependency on a running C*.