install cassandra in Windows

after installing cassandra 2.1.2 in Windows 8 and starting it I got the following error:

ERROR 20:20:43 Exception encountered during startup
java.lang.RuntimeException: Incompatible SSTable found. Current version ka is unable to read file: \var\lib\cassandra\da
ta\system\schema_keyspaces\system-schema_keyspaces-ic-1. Please run upgradesstables.
at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:427) ~[apache-cassan
dra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.ColumnFamilyStore.createColumnFamilyStore(ColumnFamilyStore.java:404) ~[apache-cassan
dra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.Keyspace.initCf(Keyspace.java:327) ~[apache-cassandra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.Keyspace.(Keyspace.java:280) ~[apache-cassandra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.Keyspace.open(Keyspace.java:122) ~[apache-cassandra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.Keyspace.open(Keyspace.java:99) ~[apache-cassandra-2.1.2.jar:2.1.2]
at org.apache.cassandra.db.SystemKeyspace.checkHealth(SystemKeyspace.java:558) ~[apache-cassandra-2.1.2.jar:2.1.
2]
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:214) [apache-cassandra-2.1.2.jar:2.1.
2]
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:448) [apache-cassandra-2.1.2.jar:2
.1.2]
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:537) [apache-cassandra-2.1.2.jar:2.1.2

it will be solved with :


in

E:\DataStax Community\apache-cassandra\conf\cassandra.yaml

change to

$CASSANDRA_HOME/data/data.
data_file_directories:
- E:\DataStax Community\apache-cassandra\data

and

$CASSANDRA_HOME/data/commitlog.
commitlog_directory: E:\DataStax Community\apache-cassandra\log

also I got the following error when I load a trigger with: nodetool -h localhost reloadtriggers

Trigger directory doesn't exist, please create it and try again.

to solve it


in

E:\DataStax Community\apache-cassandra\bin\cassandra.bat

change to

-Dlogback.configurationFile=logback.xml^
-Dcassandra.triggers_dir="E:\DataStax Community\apache-cassandra\conf\triggers"

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s