- 請查看所有的防火牆,iptables的配置是接受節點進行通信,另一個
將節點添加到環後,使用nodetool ring
查看數據負載例如我的集羣有3個節點的結果將是類似:
192.168.23.84 datacenter1 RACK1以上普通37.52 GB 33.33%
192.168.23.85 datacenter1 RACK1以上普通37.5 GB 33.33%
個192.168.23.86 datacenter1 RACK1以上普通37.5 GB 33.33%
如果類似的是,當u使用威嚇,使用此代碼來檢查赫克託請求到服務器:
MutationResult result = mutator.execute();
logger.info(" host:" + result.getHostUsed().getHost());
嘗試寫了許多重新檢查目標主機的時間是包含所有主機。
我用這個CassandraHostConfigurator許多主機添加到集羣時使用赫克託 例如:
CassandraHostConfigurator cassandraHostConfigurator = new CassandraHostConfigurator(
"192.168.23.84:9160,192.168.23.85:9160,192.168.23.86:9160");
cluster = HFactory.getOrCreateCluster("testcluster", cassandraHostConfigurator);
但在卡桑德拉1.1.0沒有auto_bootstrap的選項。那麼我在哪裏指定這個選項? – user1439690