开发者

Problems uploading schema in cassandra

I am setting up a single node install of Cassandra on my Ubuntu VM. I modified the cassandra.yaml file under /cassandra/conf with my own custom schema. When I tried using the schematool utility under /cassandra/bin, I got the error:

Cannot import schema when one already exists

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

Problem invoking loadSchemaFromYAML: java.rmi.unmarshalexception:Error Unmarshalling return;nested exception is: Java.lang.ClassNotFoundException:org.apache.cassandra.config.ConfigurationException(no security manager:RMI class loader disabled)

Can somebo开发者_StackOverflowdy point out what is going on over here and how do I get my schema loaded?

Thanks


You can only import the schema from cassandra.yaml one time. (This is now deprecated, by the way.) If you want to import the schema from cassandra.yaml again, you'll need to wipe out your data directories (/var/lib/cassandra/*) and restart Cassandra.

Your other option (and what you will need to do in the future) is create the keyspaces and column families using bin/cassandra-cli or another client.

Here's an article on live schema modifications to get you started.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜