【发布时间】:2020-08-05 13:46:04
【问题描述】:
我对 cassandra seed_provider 分配有疑问。在我的环境中,设置为集群需要 3 个 cassandra 节点。我应该如何在 cassandra.yaml 中定义它?我很困惑,因为大多数教程给出了不同的答案。
示例: 主机 A - 192.168.1.1 主机 B - 192.168.1.2 主机 C - 192.168.1.3
以下是我当前对主机 A 的设置,是否正确?
Host B 和 Host C 的配置如何?
# any class that implements the SeedProvider interface and has a
# constructor that takes a Map<String, String> of parameters will do.
seed_provider:
# Addresses of hosts that are deemed contact points.
# Cassandra nodes use this list of hosts to find each other and learn
# the topology of the ring. You must change this if you are running
# multiple nodes!
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
# seeds is actually a comma-delimited list of addresses.
# Ex: "<ip1>,<ip2>,<ip3>"
- seeds: "192.168.1.1,192.168.1.2,192.168.1.3"
【问题讨论】:
标签: database cassandra rhel cassandra-2.0