【发布时间】:2015-01-09 14:54:51
【问题描述】:
我想在 Amazon EC2 实例上运行 Cassandra Datastax Enterprise,而不是使用节点私有 IP 地址,而是使用弹性公共 IP
我目前的配置如下:
/etc/dse/cassandra/cassandra.yaml
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider
parameters:
seeds: "publicIP"
listen_address: "publicIP"
endpoint_snitch:Ec2Snitch
rpc_address: "publicIP"
“dse”服务未正常启动。
/var/log/cassandra/system.log 显示以下错误:
org.apache.cassandra.exceptions.ConfigurationException: Unable to bind to address /<publicIP>:7000. Set listen_address in cassandra.yaml to an interface you can bind to, e.g., your private IP address on EC2
我也尝试将广播地址更改为指向公共 IP 地址,但它不起作用。
是否有任何方式运行 dse 服务 (Cassandra) 以使用弹性 IP 地址而不是 EC2 机器的私有 IP?
【问题讨论】:
-
你可以怀疑,因为公共 ip 不会出现在实例的网络配置中的任何地方。除非 cassandra 允许绑定到接口,例如
eth0,而不仅仅是一个 ip,除了您配置的接口上可用的 IP 之外,您无法绑定任何东西。 -
我知道这是不久前的事了,但可以绑定到
eth0接口
标签: amazon-web-services cassandra datastax-enterprise datastax