Cassandra Datastax Enterprise使用Amazon Elastic IP [英] Cassandra Datastax Enterprise using Amazon Elastic IP

查看:370
本文介绍了Cassandra Datastax Enterprise使用Amazon Elastic IP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Amazon EC2实例上运行Cassandra Datastax Enterprise,而不使用节点专用IP地址,但是使用弹性公用IP

I would like to run Cassandra Datastax Enterprise on Amazon EC2 instances using not the node private IP address but Elastic Public IPs

我当前的配置如下: p>

My current configuration looks as follows:

/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服务未正常启动。

The "dse" service is not starting properly.

/var/log/cassandra/system.log显示以下错误:

/var/log/cassandra/system.log is showing the following error:


org.apache.cassandra.exceptions.ConfigurationException:无法绑定到地址/< publicIP>:7000。将cassandra.yaml中的listen_address设置为您可以绑定的接口,例如,EC2上的私有IP地址

我也试图改变broadcast_address指向公共IP地址,但它不工作。

I have also tried to change the broadcast_address to point to the public IP address but it doesn't work.

有任何方式运行dse服务(Cassandra)在某种程度上它使用弹性IP地址而不是EC2盒的私有IP?

Is there any way of running dse service (Cassandra) in a way it uses the elastic IP addresses and not the private IPs of EC2 boxes?

推荐答案

这里不是一个新问题,查看您的配置,进行这些更改。

Not a new question here, but looking at your config, make these changes.

listen_address: private_ip
broadcast_address: public_ip
rpc_address: 0.0.0.0

种子应该是public_ip,所以你就在那里。

Seeds should be public_ip so you're ok there.

这篇关于Cassandra Datastax Enterprise使用Amazon Elastic IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆