无法创建租赁Leader / master / 5.1.SearchGraph

时间:2017-08-02 13:23:39

标签: datastax datastax-enterprise datastax-startup datastax-enterprise-graph

我的datastax调试日志中出现以下错误。我们没有创建任何新的数据中心,只有我们所做的更改是改为GossipingPropertyFileSnitch。我们在/etc/dse/cassandra/cassandra-rackdc.properties中使用相同的旧名称。

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.

1 个答案:

答案 0 :(得分:0)

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