Reputation: 284
Going from SimpleSnitch to PropertyFileSnitch or Gossiping i succeded but the reversed process not.
Ended in this point :
Cannot start node if snitch's data center (datacenter1) differs from previous data center (DC3). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true.
Tryed to insert into cassandra-env.sh the -Dcassandra.ignore_dc=true also the -Dcassandra.ignore_rack=true Even changed in a desperate attempt the cassandra-topology.properties to look like ip=datacenter1:rack1
All futile.
Is it possible to go back from PropertyFileSnitch to SimpleSnitch (data inserted via property and network topology ) or am i hunting ghosts?
Thanks in advance.
Upvotes: 2
Views: 4710
Reputation: 16400
cassandra.ignore_dc=true would work:
Make sure in your cassandra-env.sh
you set it in the jvm opts. In the last line of the file set:
JVM_OPTS="$JVM_OPTS -Dcassandra.ignore_dc=true"
Can check its set via cat /proc/<cassanda pid>/cmdline
. If using deb should be able to do something like
cat /proc/`cat /var/run/cassandra.pid`/cmdline
or sudo service cassandra status
Upvotes: 6