[
https://issues.apache.org/jira/browse/CASSANDRA-7508?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Hobbs updated CASSANDRA-7508:
-----------------------------------
Attachment: 7508.txt
7508.txt (and [branch|https://github.com/thobbs/cassandra/tree/CASSANDRA-7508])
uses the actual token/endpoint map to determine if vnodes are enabled instead
of using the conf, which nodetool shouldn't have been doing anyway.
> nodetool prints error if dirs don't exist.
> ------------------------------------------
>
> Key: CASSANDRA-7508
> URL: https://issues.apache.org/jira/browse/CASSANDRA-7508
> Project: Cassandra
> Issue Type: Bug
> Components: Tools
> Reporter: Jeremiah Jordan
> Assignee: Tyler Hobbs
> Priority: Minor
> Fix For: 2.1.0
>
> Attachments: 7508.txt
>
>
> The new directory stuff blows up nodetool if its not there. Like if I run
> nodetool from an different untar of the rc2 tar.gz.
> {noformat}
> apache-cassandra-2.1.0-rc2/bin $ ./nodetool ring
> Note: Ownership information does not include topology; for complete
> information, specify a keyspace
> Datacenter: Analytics
> ==========
> Address Rack Status State Load Owns
> Token
> 127.0.0.1 rack1 Up Normal 57.88 KB 100.00%
> 3647214374146654083
> ERROR 21:59:30 Fatal configuration error
> org.apache.cassandra.exceptions.ConfigurationException: commitlog_directory
> is missing and -Dcassandra.storagedir is not set
> at
> org.apache.cassandra.config.DatabaseDescriptor.applyConfig(DatabaseDescriptor.java:461)
> ~[apache-cassandra-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:129)
> ~[apache-cassandra-2.1.0-rc2.jar:2.1.0-rc2]
> at org.apache.cassandra.tools.NodeTool$Ring.execute(NodeTool.java:464)
> [apache-cassandra-2.1.0-rc2.jar:2.1.0-rc2]
> at
> org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:245)
> [apache-cassandra-2.1.0-rc2.jar:2.1.0-rc2]
> at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:159)
> [apache-cassandra-2.1.0-rc2.jar:2.1.0-rc2]
> commitlog_directory is missing and -Dcassandra.storagedir is not set
> Fatal configuration error; unable to start. See log for stack trace.
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)