Cassandra从外面访问(9042-无法连接)

时间:2016-04-12 14:58:18

标签: cassandra nosql

关心社区,

我想在EC2 -AWS上部署一个Cassandra数据库集群。

我毫无疑问地遵循了这些教程:http://datascale.io/how-to-create-a-cassandra-cluster-in-aws/ http://datascale.io/how-to-create-a-cassandra-cluster-in-aws-part-2/

但我的节点(实例)无法从外部访问(DataStax DevCenter App / Linux CLI),尽管它们具有公共IP并且安全组已打开必要的端口。

> The specified host(s) could not be reached. All host(s) tried for
> query failed (tried: /52.91.81.107:9042
> (com.datastax.driver.core.TransportException: [/52.91.81.107:9042]
> Cannot connect)) [/52.91.81.107:9042] Cannot connect My configuration
> file cassandra.yaml of node1:

cluster_name: ‘DataScale Demo Cluster’
seeds: “Public IP Node 1,Public IP Node 2”
broadcast_address: Public IP Node 1
listen_address:

我怀疑是否还需要修改rpc_address(默认localhost)?

有什么建议吗?

非常感谢

1 个答案:

答案 0 :(得分:0)

listen_address和rpc_address都应该是私有IP地址。

客户端将能够通过公共IP地址访问群集。