cassandra节点发现

问题描述:

我刚刚设置了一个IP地址为192.168.0.101,192.168.0.102,192.168.0.103的3节点系统。我已经将所有三台机器配置的种子值设置为
seeds:192.168.0.101,192.168.0.102,192.168.0.103

I just set up a 3 node system with ip addresses "192.168.0.101", "192.168.0.102", "192.168.0.103". I have set the seeds value on the configuration of all three machines as seeds: "192.168.0.101,192.168.0.102,192.168.0.103"

但是,在运行nodetool时,只有 103 机器被发现。

However, on running nodetool on any of them, only the 103 machine gets discovered.


node101:/opt/cassandra/apache-cassandra-0.8.5/bin# ./nodetool
ring -h 192.168.0.101地址DC机架状态
状态加载自己的令牌

node101:/opt/cassandra/apache-cassandra-0.8.5/bin# ./nodetool ring -h 192.168.0.101 Address DC Rack Status State Load Owns Token

192.168.0.103 datacenter1 rack1正常151.96 KB

100.00%38174485210079977599903748344879358256

192.168.0.103 datacenter1 rack1 Up Normal 151.96 KB
100.00% 38174485210079977599903748344879358256

有人可以告诉我问题出在哪里?

Could someone tell me where the problem lies?

/ p>

I would recommend


  1. 确保您使用的是Cassandra的最新稳定版本

  2. 在所有机器上执行种子(例如:.101)

  3. 将它添加到log4j-server.properties:

  1. Make sure you're on the latest stable release of Cassandra
  2. Start with a single node as seed on all machines (say, .101)
  3. Add this to log4j-server.properties:

log4j。 logger.org.apache.cassandra.gms = TRACE

log4j.logger.org.apache.cassandra.gms=TRACE