【问题标题】:Cassandra unable to contact seeds if using AWS Elastic IP address... only works with private IP address如果使用 AWS 弹性 IP 地址,Cassandra 无法联系种子……仅适用于私有 IP 地址
【发布时间】:2014-02-11 05:20:08
【问题描述】:

我创建了 3 个实例,其中 3 个弹性 IP 地址指向这些实例。

我做了 dsc 的 yum 安装: dsc12.noarch 1.2.13-1 @datastax

并且 /etc/cassandra/default.conf/cassandra.yaml 具有: - 种子:[弹性IP列表]

但是当我通过“service cassandra start”启动 cassandra 时,我在 /var/log/cassandra/cassandra.log 中看到: ... 启动时遇到异常:无法联系任何种子! ... 果然“nodetool status”显示: 无法连接到“127.0.0.1:7199”:连接被拒绝

但是: 如果我将种子的值更改为使用实例的“私有 IP”,cassandra 就可以正常启动。我希望它与 Elastic IP 一起工作得很好,但事实并非如此。

你知道这是为什么吗?

我希望弹性 IP 工作的原因是我提前知道 IP 地址,这样当我使用 Puppet 配置机器时,我可以在 cassandra.yaml 文件中预先填充种子。直到机器启动后我才知道私有 IP 地址:(

这几乎是重复的:Cassandra on Amazon EC2 with Elastic IP addresses

【问题讨论】:

    标签: cassandra datastax-enterprise datastax


    【解决方案1】:

    我相信您的问题来自种子 IP 与节点的广播 IP 不同。要更改这一点,请在每个 Cassandra.yamls 中修改以下行

    # Address to broadcast to other Cassandra nodes
    # Leaving this blank will set it to the same value as listen_address
    broadcast_address: <node's elastic ip> #uncomment this line
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-26
      • 2017-06-14
      • 2020-01-10
      • 1970-01-01
      • 2013-01-06
      • 2014-09-27
      • 1970-01-01
      相关资源
      最近更新 更多