【发布时间】:2016-03-09 19:18:05
【问题描述】:
我正在使用 AWS CloudFormation 创建一个 3 节点 Datastax Cassandra 集群。在我所有节点上的 ec2-user 主目录中,我在文本文件 (seeds.txt) 中创建种子 IP。集群正在按预期创建。 Node1 是种子节点。但是 Node2 和 Node3 将它们各自的私有 IP 设置为种子 IP。有谁知道在 node2 和 node3 上的 cassandra.yaml 文件中设置种子 IP 的脚本/命令? 我尝试了 sed 命令从 ec2-user 主目录 cat seed.txt 并修改 cassandra.yaml 文件,但它不起作用。这是我的 cassandra.yaml 文件的一部分,
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: "1.2.3.4"
【问题讨论】: