Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start Cassandra DataStax DDC Server

I have a fresh installation of Cassandra 3.7 with DatStax DDC in Windows. I am trying to start the Cassandra database as a service.I am using net start DataStax_DDC_Server to start the service. The service is not starting and exiting without reporting an error. I am getting the following error in the logs.

java.lang.RuntimeException: Failed to create failed snapshot tracking file [C:\Cassandra\.toDelete]. Aborting
    at org.apache.cassandra.db.WindowsFailedSnapshotTracker.deleteOldSnapshots(WindowsFailedSnapshotTracker.java:99)
    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:177)
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585)
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714)

What is causing this error and how do I fix this?

like image 449
khateeb Avatar asked Jul 27 '16 09:07

khateeb


2 Answers

Look at the logs in the installation folder. E.g. c:\Program Files\DataStax-DDC\logs.

The datastax_ddc_server-stderr.xxxxx.log will give you details about what the problem is. For me the error was cdc_raw_directory is missing and -Dcassandra.storagedir is not set so i opened c:\Program Files\DataStax-DDC\apache-cassandra\conf\cassandra.yaml, found the cdc_raw_directory setting and simply uncommented it.

like image 139
TugboatCaptain Avatar answered Sep 29 '22 22:09

TugboatCaptain


After fixing that you also get an Error when you will try to run cassandra.bat from command line.

it will tell you that \conf\\\hotspot_compiler cannot be found

Fix: go to C:\Program Files\DataStax-DDC\apache-cassandra\conf

modify cassandra-env.ps1

just change CASSANDRA_CONF\conf\hotsport_compiler to CASSANDRA_HOMEconf\hotsport_compiler

WITHOUT the backslash... this is not a typo ^^

finally cassandra.bat will start and cqlshell will work.

.. then close the command window where you started cassandra.bat (as admin) press CONTROL+C

..and finally you can start the service as admin: net start DataStax_DDC_Server

like image 23
user3202468 Avatar answered Sep 29 '22 23:09

user3202468