Cassandra节点清理启动后不拉取数据
Cassandra node does not pull data after cleanup and start
我误删除了其中一个 Cassandra 节点的一些数据文件。
之后我停止了上述节点,从中删除了数据、提交日志和 saved_caches 目录,然后再次启动它。
节点加入UN,状态nodetool
,状态OpsCenter
,同时拥有15.3%代币。
我希望它开始从其他节点拉取数据,但它的数据停留在 157.31 KB 上并且没有做任何事情。
在日志中可以看到最后一条日志条目是在半小时前,并且是Handshaking version with DB03/10.2.106.3
(它自己的IP)。
如何重新平衡数据?
编辑:我们使用的Cassandra版本是2.1 2.0.12
编辑:在cassandra.yaml中没有条目auto_bootstrap
,因此它应该是默认的true
设置,根据http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/configuration/configCassandra_yaml_r.html
尝试 [nodetool rebuild][1]
,Datastax 将其描述为 "rebuilds data by streaming from other nodes"
我误删除了其中一个 Cassandra 节点的一些数据文件。
之后我停止了上述节点,从中删除了数据、提交日志和 saved_caches 目录,然后再次启动它。
节点加入UN,状态nodetool
,状态OpsCenter
,同时拥有15.3%代币。
我希望它开始从其他节点拉取数据,但它的数据停留在 157.31 KB 上并且没有做任何事情。
在日志中可以看到最后一条日志条目是在半小时前,并且是Handshaking version with DB03/10.2.106.3
(它自己的IP)。
如何重新平衡数据?
编辑:我们使用的Cassandra版本是2.1 2.0.12
编辑:在cassandra.yaml中没有条目auto_bootstrap
,因此它应该是默认的true
设置,根据http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/configuration/configCassandra_yaml_r.html
尝试 [nodetool rebuild][1]
,Datastax 将其描述为 "rebuilds data by streaming from other nodes"