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

nodetool prints error if dirs don't exist.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.0.10, 2.1 rc4
    • Tool/nodetool
    • None
    • Low

    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

              thobbs Tom Hobbs
              jjordan Jeremiah Jordan
              Tom Hobbs
              Jeremiah Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: