0

我得到我的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文檔中提到的步驟操作。 –

回答

0

聽起來像你的系統表中有一些陳舊的或不匹配的數據來改變DC名稱。如果這是一個開發環境或沒有數據的產品環境,最簡單的方法就是擦除Cassandra數據目錄並重新啓動節點。

+0

節點中有數據,所以我無法擦除目錄中的數據。 –

+0

您是否已經解決了這個問題?如果沒有,您可以備份數據目錄中的數據,或者簡單地複製數據控制器內容,重新構建羣集,然後使用sstableloader將數據重新加載到羣集中。 – jlacefie