I'm trying datastax enterprise 4.8.4 on ubuntu. Installation is OK following the instructions. I can start a cassandra node with the command sudo service dse start. Then I want to try restart as a solr node on the same machine. So I edit the /etc/default/dse and set SOLR_ENABLED=1. Now I tried to start cassandra again, it failed.
@ubuntu:~$ sudo service dse start
* Starting DSE daemon dse
DSE daemon starting with Solr enabled (edit /etc/default/dse to disable)
[ OK ]
@ubuntu:~$ sudo service dse status
* dse is running
@ubuntu:~$ sudo service dse status
* dse is not running
I checked the /var/log/cassandra/system.log. Here's the error message:
ERROR [main] 2016-01-28 16:44:02,767 CassandraDaemon.java:294 - Fatal exception during initialization
org.apache.cassandra.exceptions.ConfigurationException: Cannot start
node if snitch's data center (Solr) differs from previous data center
(Cassandra). Please fix the snitch configuration, decommission and
rebootstrap this node or use the flag -Dcassandra.ignore_dc=true.
The question is how could I fix it? or where do I add -Dcassandra.ignore_dc=true?
/etc/dse/cassandra/cassandra-rackdc.properties, I managed to get dse running. But still don't know when it is changed by what command and how the dc and rack settings should be set. - yang