I am trying to get started with Cassandra triggers, but I cannot get Cassandra to load them. I have built jar files from here and here, and put them under C:\Program Files\DataStax-DDC\apache-cassandra\conf\triggers
. I have restarted the DataStax_DDC_Server
service (on Windows) and reopened the CQLSH command line, but trying to use the trigger class in a create trigger
command gives me only:
ConfigurationException: <ErrorMessage code=2300 [Query invalid because of configuration issue] message="Trigger class 'org.apache.cassandra.triggers.InvertedIndex' doesn't exist">
I checked the jar files, and they include the class files.
The only thing I could find in the log files of cassandra is Trigger directory doesn't exist, please create it and try again.
But I don't know if that is relevant.
EDIT: Following the last line shown here, I edited the cassandra.bat
file. Now if I stop the DataStax_DDC_Server
service and run the bat file directly, the create trigger
command succeeds. Nevertheless, the service seems to be independent of this bat file. The question now is how to apply the same config to the service?