You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Tyler Hobbs (JIRA)" <ji...@apache.org> on 2014/07/23 21:33:39 UTC

[jira] [Commented] (CASSANDRA-7587) sstablekeys does not work with default configuration

    [ https://issues.apache.org/jira/browse/CASSANDRA-7587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14072207#comment-14072207 ] 

Tyler Hobbs commented on CASSANDRA-7587:
----------------------------------------

Since sstablekeys (and many of the other tools) need to know the schema, it seems like we have a couple of choices:
# Set {{-Dcassandra.storagedir}} in all of the shell scripts for the tools
# When DatabaseDescriptor is being initialized, don't complain about commitlog/data/saved_caches not being set.  If those are actually used later, throw a ConfigurationException.

Some of the tools (e.g. upgradesstables) need to know what the data directories are, so option #2 isn't enough by itself.  For that reason, I'm leaning towards #1.

> sstablekeys does not work with default configuration
> ----------------------------------------------------
>
>                 Key: CASSANDRA-7587
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7587
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Kristine Hahn
>            Assignee: Tyler Hobbs
>            Priority: Minor
>
> The directory I tried to use with the sstablekeys tool is <path>/apache-cassandra-2.1.0-rc4/data/data/music/playlists-e80c033011bd11e49269bb45d4dd025b/music-playlists-ka-1-Data.db
> Results of attempting to use the command:
> {quote}
> sstablekeys <path>2.1rc4/apache-cassandra-2.1.0-rc4/data/data/music/playlists-e80c033011bd11e49269bb45d4dd025b/music-playlists-ka-1-Data.db
> ERROR 16:54:57 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:447) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4]
> 	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:129) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4]
> 	at org.apache.cassandra.tools.SSTableExport.main(SSTableExport.java:406) ~[apache-cassandra-2.1.0-rc4.jar:2.1.0-rc4]
> commitlog_directory is missing and -Dcassandra.storagedir is not set
> Fatal configuration error; unable to start. See log for stacktrace.
> {quote}
> The system log says:
> {quote}
> ERROR [main] 2014-07-22 09:27:26,145 CassandraDaemon.java:203 - Directory ./../data/data doesn't exist
> ERROR [main] 2014-07-22 09:27:26,154 CassandraDaemon.java:203 - Directory ./../data/commitlog doesn't exist
> ERROR [main] 2014-07-22 09:27:26,154 CassandraDaemon.java:203 - Directory ./../data/saved_caches doesn't exist
> {quote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)