cassandra(3.x)将新节点添加到集群

时间:2016-04-26 09:16:00

标签: cassandra

我在同一个网络中有两个vm,我在cassandra.yaml文件中为每个节点键入listen_address和rpc_address。我只编辑了所有默认设置的这三个属性。 这是我的cassandra.yaml文件的样子:

vm1(ip:192.168.0.35):             vm2(ip:192.168.0.36):
listen_address: 192.168.0.35      listen_address: 192.168.0.36     
rpm_address: 192.168.0.35         rpc_address: 192.168.0.36
seeds: "192.168.0.36"             seeds: "192.168.0.36"

然后我启动它们并检查bin/nodetool status 但每个节点单独运行不会互相通话。 我在cassandra 2.1中观看了一个样本,这些是他所做的唯一的事情,但它起作用但不是我的......

有人有意见吗?或者在cassandra 3.x版本中试过这个?

EDITED:这是来自cassandra的命令消息,他正在与另一个节点握手: enter image description here

但他不在某种程度上的列表(nodetool状态)..

/ etc / hosts中:

127.0.0.1   localhost
127.0.1.1   ubuntu

192.168.0.35    Node2
192.168.0.36    Node3

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

0 个答案:

没有答案