Two node DSE spark cluster error setting up second node. Why?

醉酒当歌 提交于 2019-12-06 15:33:15

You previously started this node with the DseSimpleSnitch which named the Datacenter Cassandra since analytics was not enabled.

Now when starting this node the records on disk state that the datacenter name should be "Cassandra" but since it was started in analytics mode the actual datacenter name is "Analytics". Clear out /var/lib/cassandra and it should wipe out the old data and start fresh.

In the future if you set your nodes to use the GossipingPropertyFileSnitch or another snitch that allows you to name the datacenter explicitly, you can avoid this problem since changing the workload will not change the Datacenter name.

This rule was added recently to prevent people from accidentally changing rack / DC names and take their applications down.

Alternatively, if this is just a dev system and you can afford downtime, you can turn off the check (this assumes you know what you're doing).

Add:

JVM_OPTS="$JVM_OPTS -Dcassandra.ignore_rack=true -Dcassandra.ignore_dc=true"

to your cassandra-env.sh

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!