Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-7508

nodetool prints error if dirs don't exist.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 2.0.10, 2.1 rc4
    • Component/s: Tool/nodetool
    • Labels:
      None
    • Severity:
      Low
    • Since Version:

      Description

      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.

      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.
      

        Attachments

        1. 7508.txt
          2 kB
          Tom Hobbs

          Issue Links

            Activity

              People

              • Assignee:
                thobbs Tom Hobbs
                Reporter:
                jjordan Jeremiah Jordan
                Authors:
                Tom Hobbs
                Reviewers:
                Jeremiah Jordan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: