无法创建租赁主管/主/ 5.1.SearchGraph

问题描述:

我得到我的datastax调试日志下面的错误。我们没有创建任何新的数据中心,只有我们改变了GossipingPropertyFileSnitch。我们在/etc/dse/cassandra/cassandra-rackdc.properties中使用了相同的旧名称。无法创建租赁主管/主/ 5.1.SearchGraph

Failed to create lease Leader/master/5.1.SearchGraph. Possible causes 
include network/C* issues, the lease being disabled, insufficient 
replication (you created a new DC and didn't ALTER KEYSPACE dse_leases) 
and the duration (30000) being different (you have to disable/delete 
/recreate the lease to change the duration). java.io.IOException: No live 
replicas for lease Leader/master/5.1.SearchGraph in table 
dse_leases.leases (keyspace dse_leases has no replicas in datacenter 
SearchGraph! You need to adjust the replication factor. 
+0

你跟随改变告密者的指示是什么http://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsSwitchSnitch.html – mando222

+0

你用GPFS改变了什么?你能提供更多细节吗? – jlacefie

+0

@ mando222是的,我们按照datastax文档中提到的步骤操作。 –

听起来像你的系统表中有一些陈旧的或不匹配的数据来改变DC名称。如果这是一个开发环境或没有数据的产品环境,最简单的方法就是擦除Cassandra数据目录并重新启动节点。

+0

节点中有数据,所以我无法擦除目录中的数据。 –

+0

您是否已经解决了这个问题?如果没有,您可以备份数据目录中的数据,或者简单地复制数据控制器内容,重新构建群集,然后使用sstableloader将数据重新加载到群集中。 – jlacefie