cassandra节点发现 [英] cassandra node discovery

查看:110
本文介绍了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

这篇关于cassandra节点发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆