After the upgrade when I'm starting cassadra dse service I have the error below:
ERROR [main] 2020-03-04 16:18:32,016 CassandraDaemon.java:862 - Fatal configuration error org.apache.cassandra.exceptions.ConfigurationException: Cannot change the number of tokens from 8 to 1 at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:1127) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:689) at org.apache.cassandra.service.StorageService.initServer(StorageService.java:613) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:402) at com.datastax.bdp.server.DseDaemon.setup(DseDaemon.java:527) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:702) at com.datastax.bdp.DseModule.main(DseModule.java:96)
the fix for that I found was
Step 1 - Calculate the token for the node as described in the Generating tokens document. Step 2 - Reconfigure the token properties in cassandra.yaml: comment out num_tokens set the token assignment initial_token leave auto_bootstrap: true Step 3 - Delete the following directories. This will ensure that all their contents are cleaned out completely. <data_file_directories> commitlog saved_caches Step 4 - Recreate the directories above and make sure Cassandra has full permissions. Step 5 - Bootstrap the node again by starting DSE.
But if I do step 3 it will delete my data, what make no sense for me.
When I'm doing 1 and 2 I have issues like:
tatus=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load TokensOwns Host ID Rack UN 10.*.*.1 542.54 MiB 8 ? 5b7238df-92ee-4e44-8aa2-ac1819934df0 rack1 UN 10.*.*.2 787.82 MiB 8 ? 5aa41102-4621-4174-8c94-24e82d2187d8 rack1 UN 10.*.*.3 182.31 KiB 1 ? 5be1ed48-8fac-4c0a-ab35-703bf5eebb97 rack1
In cassandra.yaml file I add my values gave by
python -c 'print [str(((2**64 / 8) * i) - 2**63) for i in range(8)]'
initial_token: 1,2,3,4,5,6,7,8
ERROR [main] 2020-03-04 21:25:59,900 DseModule.java:100 - {}. Exiting... com.google.inject.CreationException: Unable to create injector, see the following errors: 1) An exception was caught and reported. Message: The number of initial tokens (by initial_token) specified is different from num_tokens value at com.datastax.bdp.DseModule.configure(Unknown Source)
How to fix this issue and keep my data, since I'm upgrading and my node 3 won't communicate with my nodes 5.1.17?
Thanks.