I've managed to fix this issue by changing the replication factor of the
system_distributed keyspace to
NetworkTopologyStrategy to include both DCS on the new dc1.
But as I've already made this change on datacenter1, I was expecting that it will be automatically be replicated on the new dc1 too.
The issue is not fixed yet, coz the nodetool rebuild command is now running but it replicated only 1mb of data from old dc to new dc.
Also, there is still a different schema version for old and new dc nodes
#nodetool describecluster
Cluster Information:
Name: Recommendation
Snitch: org.apache.cassandra.locator.GossipingPropertyFileSnitch
DynamicEndPointSnitch: enabled
Partitioner: org.apache.cassandra.dht.Murmur3Partitioner
Schema versions:
ea63e099-37c5-3d7b-9ace-32f4c833653d: [10.41.6.155, 10.41.6.157, 10.41.6.156, 10.41.6.159, 10.41.6.158, 10.41.6.160] fd507b64-3070-3ffd-8217-f45f2f188dfc: [172.21.201.205, 172.21.201.45, 172.21.201.44, 172.21.201.207, 172.21.201.206, 172.21.201.46]
I am unable to replicate the data from the old dc to the new dc yet.