【问题标题】:Cassandra New node not able to see in statusCassandra 新节点无法查看状态
【发布时间】:2018-06-06 14:27:11
【问题描述】:

您好,我在 cassandra 中添加了一个新节点。我在新节点中对 cassandra.yaml 文件进行了相同的更改,下面是两个节点上的 cassandra-rackdc.properties 详细信息。 dc=DC1 机架=RAC1 从任何节点我都看不到不同的节点。

旧的现有节点

[root@cas1 apache-cassandra-2.1.3]# bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens  Owns    Host ID                               Rack
UN  192.168.1.101  110.28 KB  256     ?       2616878e-d276-46d3-ad1c-01a2e8fd15c2  rack1

新节点

[root@cas2 apache-cassandra-2.1.3]# bin/nodetool status
Datacenter: datacenter1
=======================
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address        Load       Tokens  Owns    Host ID                               Rack
UN  192.168.1.102  128.62 KB  256     ?       2616878e-d276-46d3-ad1c-01a2e8fd15c2  rack1

都是vmware机器。

【问题讨论】:

  • 你改了-seed配置了吗?

标签: cassandra cassandra-2.0 spark-cassandra-connector cassandra-3.0


【解决方案1】:

两个节点的设置相同是不够的。您必须帮助新节点发现它打算加入的集群。

您可以通过更新新节点的 cassandra.yaml 中的种子属性来做到这一点。

  • 种子(默认值:127.0.0.1) gossip 用于引导新节点加入集群的 IP 地址的逗号分隔列表。如果您的集群包含多个节点,则必须将列表从默认值更改为其中一个节点的 IP 地址。

使用的参考:https://docs.datastax.com/en/cassandra/3.0/cassandra/configuration/configCassandra_yaml.html

【讨论】:

  • 旧服务器 IP(192.168.1.101) 我在两个服务器(新旧)中都用作种子。
  • 以下详细信息我在两个服务器中使用 cluster_name:'Test Cluster',num_tokens:256,身份验证器:PasswordAuthenticator,授权器:CassandraAuthorizer,-种子:“192.168.1.101,192.168.1.102”,listen_address:192.168 .1.102,#broadcast_address:1.2.3.4,rpc_address:0.0.0.0,rpc_port:9160,broadcast_rpc_address:1.2.3.4,endpoint_snitch:GossipingPropertyFileSnitch
  • 你能从新节点ping到旧节点吗?您确定中间没有防火墙吗?检查新节点上的日志。您必须了解发生了什么问题。
猜你喜欢
  • 2019-06-23
  • 2016-12-24
  • 1970-01-01
  • 2021-09-09
  • 2016-03-06
  • 2013-11-17
  • 1970-01-01
  • 1970-01-01
  • 2020-02-17
相关资源
最近更新 更多