Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

toosturdy4u avatar image
toosturdy4u asked Erick Ramirez answered

Unable to see node 2 in exercise 07 Ring section of DS201

Hi Team,

I am following exercise 07 Ring of course DS201. I successfully edited token of node2 but I am seeing only node1 even after starting node2.

[root@LCDCCDB3563 cassandra]# /home/ubuntu/node1/resources/cassandra/bin/nodetool status
Datacenter: Cassandra
=====================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving/Stopped
-- Address Load Owns (effective) Host ID Token Rack
UN 127.0.0.2 195.01 KiB 100.0% f946f621-ac74-4e00-b440-de60971ea748 400354668431665106 rack1

Few last lines of starting node2 : as you can see , it says successfully added node2 to the right but i am unable to see node1 now.

INFO [DSE main thread] 2021-02-06 00:09:15,480 Gossiper.java:2185 - Waiting for gossip to settle before accepting client requests...
INFO [GossipStage:1] 2021-02-06 00:09:17,159 Gossiper.java:1324 - Node /127.0.0.1 is now part of the cluster
INFO [GossipStage:1] 2021-02-06 00:09:17,163 Gossiper.java:1346 - WRITING LOCAL JOIN INFO to [com.datastax.bdp.util.Addresses$Internode$AddressCacheManager@51475cde, org.apache.cassandra.service.disk.usage.DiskUsageBroadcaster@5db9c745, org.apache.cassandra.gms.Gossiper$2@488b930a, org.apache.cassandra.service.StorageService@4c699a35, org.apache.cassandra.service.LoadBroadcaster@27a39eca]
WARN [GossipStage:1] 2021-02-06 00:09:17,176 StorageService.java:3294 - Not updating host ID f946f621-ac74-4e00-b440-de60971ea748 for /127.0.0.1 because it's mine
INFO [GossipStage:1] 2021-02-06 00:09:17,177 StorageService.java:3352 - Nodes /127.0.0.1 and /127.0.0.2 have the same token 400354668431665106. Ignoring /127.0.0.1
INFO [InternalResponseStage:1] 2021-02-06 00:09:17,178 Gossiper.java:1286 - InetAddress /127.0.0.1 is now UP
INFO [GossipStage:1] 2021-02-06 00:09:17,185 YamlConfigurationLoader.java:77 - Configuration location: file:/home/ubuntu/node2/resources/cassandra/conf/cassandra.yaml
INFO [GossipStage:1] 2021-02-06 00:09:17,185 Gossiper.java:515 - removed /127.0.0.1 from seeds, updated seeds list = [/127.0.0.3]
INFO [GossipStage:1] 2021-02-06 00:09:17,185 Gossiper.java:1301 - InetAddress /127.0.0.1 is now DOWN
WARN [GossipTasks:1] 2021-02-06 00:09:17,426 FailureDetector.java:294 - Not marking nodes down due to local pause of 10063393009 > 5000000000
INFO [DSE main thread] 2021-02-06 00:09:35,582 Gossiper.java:2254 - No gossip backlog
INFO [DSE main thread] 2021-02-06 00:09:35,583 Gossiper.java:2305 - No pending echos; proceeding. Echos failed 0, Echos succeeded 1
INFO [DSE main thread] 2021-02-06 00:09:35,583 Gossiper.java:2315 - Gossip settled; proceeding
INFO [DSE main thread] 2021-02-06 00:09:35,596 YamlConfigurationLoader.java:77 - Configuration location: file:/home/ubuntu/node2/resources/cassandra/conf/cassandra.yaml
INFO [DSE main thread] 2021-02-06 00:09:35,596 StorageService.java:1443 - Using saved tokens [400354668431665106]
INFO [DSE main thread] 2021-02-06 00:09:35,630 StorageService.java:2181 - JOINING: Finish joining ring
INFO [DSE main thread] 2021-02-06 00:09:35,633 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_system_local', ColumnFamily='solr_resources')
INFO [DSE main thread] 2021-02-06 00:09:35,633 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_system', ColumnFamily='encrypted_keys')
INFO [DSE main thread] 2021-02-06 00:09:35,634 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_leases', ColumnFamily='logs')
INFO [DSE main thread] 2021-02-06 00:09:35,634 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_leases', ColumnFamily='leases')
INFO [DSE main thread] 2021-02-06 00:09:35,634 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='solr_admin', ColumnFamily='solr_resources')
INFO [DSE main thread] 2021-02-06 00:09:35,634 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_insights', ColumnFamily='insights_config')
INFO [DSE main thread] 2021-02-06 00:09:35,634 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_insights', ColumnFamily='tokens')
INFO [DSE main thread] 2021-02-06 00:09:35,635 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_insights_local', ColumnFamily='insights_config')
INFO [DSE main thread] 2021-02-06 00:09:35,635 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_perf', ColumnFamily='node_slow_log')
INFO [DSE main thread] 2021-02-06 00:09:35,635 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_security', ColumnFamily='digest_tokens')
INFO [DSE main thread] 2021-02-06 00:09:35,636 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_security', ColumnFamily='role_options')
INFO [DSE main thread] 2021-02-06 00:09:35,636 SecondaryIndexManager.java:951 - Executing pre-join tasks for: CFS(Keyspace='dse_security', ColumnFamily='spark_security')
INFO [DSE main thread] 2021-02-06 00:09:35,638 StorageService.java:3255 - Node /127.0.0.2 state jump to NORMAL
INFO [CoreThread-0] 2021-02-06 00:09:35,699 NodeSyncService.java:381 - Enabled Incremental NodeSync trackers for 10 tables in 48ms
INFO [DSE main thread] 2021-02-06 00:09:35,734 BackupService.java:240 - Backup service can be started as the cluster is ready
INFO [DSE main thread] 2021-02-06 00:09:35,734 StorageService.java:1465 - Startup with data available + schema info (07757029-b148-3bb3-915a-4b2a149c5562)
INFO [DSE main thread] 2021-02-06 00:09:35,734 StorageService.java:952 - Snitch information: DynamicEndpointSnitch{registered=true, subsnitch=DseDelegateSnitch{workloads=[Cassandra], delegate=DseSimpleSnitch{myDC=Cassandra, rack=rack1}}}, local DC:Cassandra / rack:rack1
INFO [DSE main thread] 2021-02-06 00:09:36,562 CassandraDelegationTokenSecretManager.java:75 - Created CassandraDelegationTokenSecretManager with token max-life: 168 hours and renewal interval: 1 hours

Thanks,

Nathan

ds201
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

The issue is that you have assigned the same token for both nodes so they are colliding:

INFO [GossipStage:1] 2021-02-06 00:09:17,177 StorageService.java:3352 - Nodes /127.0.0.1 and /127.0.0.2 have the same token 400354668431665106. Ignoring /127.0.0.1

It doesn't look like you've followed the instructions correctly.

In step 5, you were supposed to assign the token as follows:

initial_token: 9223372036854775807

Where did you get 400354668431665106 from? In any case, you've configured the wrong tokens for both nodes 1 and 2 so you need to start over. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.