多节点集群上的Cassandra - 未链接到Seed的节点

时间:2016-02-05 10:57:33

标签: cassandra

下面提到的是我的Cassandra设置:

  • 192.168.80.115(种子)

  • 192..168.80.116(Node1)

  • 192..168.80.117(Node2)

  • 192..168.80.118(Node3)

我已在所有节点中安装了Cassandra 下面提到的是cassandra.yaml的配置

cassandra.yaml - 192.168.80.115 (Seed)
======================================

    cluster_name: 'Test Cluster'
    initial_token: 0
    seed_provider:
        - seeds:  "192.168.80.115"
    listen_address: 192.168.80.115
    rpc_address: 0.0.0.0
    endpoint_snitch: RackInferringSnitch


cassandra.yaml - 192.168.80.116 (Node1)
========================================
cluster_name: 'Test Cluster'
initial_token: -4611686018427387904
seed_provider:
    - seeds:  "192.168.80.115"
listen_address: 192.168.80.116
rpc_address: 0.0.0.0
endpoint_snitch: RackInferringSnitch

cassandra.yaml - 192.168.80.117 (Node2)
========================================

    cluster_name: 'Test Cluster'
    initial_token: 4611686018427387904
    seed_provider:
        - seeds:  "192.168.80.115"
    listen_address: 192.168.80.117
    rpc_address: 0.0.0.0
    endpoint_snitch: RackInferringSnitch

cassandra.yaml - 192.168.80.118 (Node3)
========================================
cluster_name: 'Test Cluster'
initial_token: -9223372036854775808
seed_provider:
    - seeds:  "192.168.80.115"
listen_address: 192.168.80.118
rpc_address: 0.0.0.0
endpoint_snitch: RackInferringSnitch

当我启动Cassandra并检查种子中的节点状态时,我只能看到我的localhost而不是其他节点

192.168.80.115种子

Datacenter: datacenter1
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns    Host ID                               Rack
UN  127.0.0.1  96.98 KB   256          ?       deb3f882-1886-4e09-be08-21ebd7e99c8d  rack1

节点中的状态如下所示

192.168.80.116节点1

Datacenter: datacenter1
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns    Host ID                               Rack
UN  127.0.0.1  116.33 KB  256          ?       21a310ee-5652-4179-8b59-d1c7dcd538ee  rack1
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless

192.168.80.117节点2

Datacenter: datacenter1
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns    Host ID                               Rack
UN  127.0.0.1  156.95 KB  256          ?       b64a5a17-21d0-4cf6-bbd6-1eff8d8feb93  rack1

Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless

192.168.80.118节点3

Datacenter: datacenter1
Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns    Host ID                               Rack
UN  127.0.0.1  157.04 KB  256          ?       43a24dea-26cc-4094-9da7-2b26b8c5f7e5  rack1
Note: Non-system keyspaces don't have the same replication settings, effective ownership information is meaningless

为什么我无法在种子节点状态中看到工作节点

0 个答案:

没有答案