Cannot start node if snitch's data center (dc1) differs from previous data center (datacenter1)

This error is caused by a failed previous installation and the data_file_directories, commitlog_directories and saved_caches_directories are not deleted.

INFO  22:05:47 Initializing system.schema_functions
INFO  22:05:47 Initializing system.schema_aggregates
INFO  22:05:47 Not submitting build tasks for views in keyspace system as storage service is not initialized
ERROR 22:05:48 Cannot start node if snitch's data center (dc1) differs from previous data center (datacenter1). Please fix the snitch configuration, decommission and rebootstrap this node or use the flag -Dcassandra.ignore_dc=true.
[bigdata@orcl1 bin]$
REMEDY
[bigdata@orcl1 cassandra]$ ls
commitlog  data  saved_caches
[bigdata@orcl1 cassandra]$ cd commitlog/
[bigdata@orcl1 commitlog]$ ls
CommitLog-6-1469829020867.log  CommitLog-6-1469829020868.log  CommitLog-6-1469829947469.log
[bigdata@orcl1 commitlog]$ rm *
[bigdata@orcl1 commitlog]$ cd ../data/
[bigdata@orcl1 data]$ ls
system  system_auth  system_distributed  system_schema  system_traces
[bigdata@orcl1 data]$ rm *
rm: cannot remove `system': Is a directory
rm: cannot remove `system_auth': Is a directory
rm: cannot remove `system_distributed': Is a directory
rm: cannot remove `system_schema': Is a directory
rm: cannot remove `system_traces': Is a directory
[bigdata@orcl1 data]$ rm -rf *
[bigdata@orcl1 data]$ cd ..
[bigdata@orcl1 cassandra]$ ls
commitlog  data  saved_caches
[bigdata@orcl1 cassandra]$ cd saved_caches/
[bigdata@orcl1 saved_caches]$ ls
[bigdata@orcl1 saved_caches]$ cd ..
Comments