Problems loading schema in cassandra

I am installing one installation of node Cassandra on my Ubuntu VM. I modified the cassandra.yaml file under / cassandra / conf with my own custom schema. When I tried to use the schematool utility in / cassandra / bin, I got an error:

Unable to import schema if already exists

When I tried to switch to MBEAN loadSchemaFromYAML from the JMX console:

The problem causing loadSchemaFromYAML: java.rmi.unmarshalexception: Unmarshalling return error, the nested exception is: Java.lang.ClassNotFoundException: org.apache.cassandra.config.ConfigurationException (no security manager: RMI classloader disabled)

Can someone please indicate what is going on here and how can I upload my circuit?

thank

+3
source share
1 answer

You can import a schema only from cassandra.yaml once. (By the way, this is now deprecated.) If you want to import the schema from cassandra.yaml again, you need to destroy your data directories (/ var / lib / cassandra / *) and restart Cassandra.

Another option (and what you need to do in the future) is to create key clusters and column families using bin / cassandra-cli or another client.

Here's an article about modifications to the live circuit to get you started.

+5
source

Source: https://habr.com/ru/post/1785325/


All Articles