Cassandra - nodetool重建

时间:2017-05-26 22:10:16

标签: cassandra rebuild

将新DC添加到3节点群集。现有3个节点中的数据非常小,为10GB。 执行以下步骤以添加新DC。

1) Updated new cluster config with following Cassandra.yml parameter   
    a. Auto_bootstrap: false    
    b. Seeds: - Matched the seeds with the current seed config.     
2) Started the new cluster    
3) Update the keyspace in DC to add the new DC    
    a. ALTER KEYSPACE "temp" WITH REPLICATION = {'class' : 'NetworkTopologyStrategy', 'clu-1':3, 'newclu-1' : 3};    
4) Started “nodetool rebuild --- my_cluster”  in all nodes at the new DC.    

我错过了任何步骤。原因是集群停止发送数据。我在所有节点上看到以下行。

INFO  [STREAM-IN-/] 2017-05-24 18:36:26,337  StreamResultFuture.java:212 - [Stream #e482eed0-40af-11e7-8d18-21388e2034a2] All sessions completed

但是当我做" nodetool netstats"。重建仍在运行。

Mode: NORMAL
Rebuild d4f4d160-40b2-11e7-87d8-ed7164988f34
Read Repair Statistics:
Attempted: 300
Mismatch (Blocking): 0
Mismatch (Background): 0
Pool Name Active Pending Completed
Commands n/a 0 218172
Responses n/a 0 921087 

即使新节点上的nodetool状态只显示几MB数据而不是10GB。

0 个答案:

没有答案