cassandra在更改分区后不启动

cassandra在更改分区后不启动,cassandra,datastax,Cassandra,Datastax,我换了卡桑德拉。默认的分区器为3分区器。我编辑cassandra.yaml并将分区器更改为ByteOrderedPartitioner,以便使用>,>=,您不能更改分区器。这是完全没有根据的 为了做到这一点,您需要使用ByteOrderedPartitioner创建一个新集群partitioner,在将数据从旧复制到新时写入这两个集群。一旦所有数据都被复制过来,开关就会从旧数据读取到新数据 我强烈建议不要使用ByteOrderedPartitioner,相反,您应该尝试稍微更改一下数据模型,以获

我换了卡桑德拉。默认的分区器为3分区器。我编辑cassandra.yaml并将分区器更改为ByteOrderedPartitioner,以便使用>,>=,您不能更改分区器。这是完全没有根据的

为了做到这一点,您需要使用ByteOrderedPartitioner创建一个新集群partitioner,在将数据从旧复制到新时写入这两个集群。一旦所有数据都被复制过来,开关就会从旧数据读取到新数据


我强烈建议不要使用ByteOrderedPartitioner,相反,您应该尝试稍微更改一下数据模型,以获得所有>,>=,谢谢@ChrisLohfink
sudo service dse stop 
sudo nano /etc/dse/cassandra/cassandra.yaml
sudo service dse start
Job for dse.service failed because the control process exited with error code. See "systemctl status dse.service" and "journalctl -xe" for details.
ERROR [SSTableBatchOpen:2] 2018-04-24 00:54:10,498  SSTableReader.java:511 - Cannot open /var/lib/cassandra/data/system/local-7ad54392bcdd35a6$84174e047860b377/mc-252-big; partitioner org.apache.cassandra.dht.Murmur3Partitioner does not match system partitioner org.apache.cassandra.dht.ByteOrderedPartitioner.  Note that the default partitioner starting with Cassandra 1.2 is Murmur3Partitioner, so you will need  to edit that to match your old partitioner if upgrading.