简体   繁体   English

如何在云服务器上连接到cassandra

[英]how to connect to cassandra on a cloud server

I have been trying to connect to a cassandra database on a Rackspace cloud server with no success. 我一直试图连接到Rackspace云服务器上的cassandra数据库,但没有成功。

Can anyone shed any light on the last paragraph of this comment from http://wiki.apache.org/cassandra/StorageConfiguration 任何人都可以从http://wiki.apache.org/cassandra/StorageConfiguration对此注释的最后一段进行任何说明

listen_address Commenting out this property leaves it up to InetAddress.getLocalHost(). listen_address注释掉此属性后,将其留给InetAddress.getLocalHost()。 This will always do the Right Thing if the node is properly configured (hostname, name resolution, etc), and the Right Thing is to use the address associated with the hostname (it might not be: on cloud services you should ensure the private interface is used). 如果正确配置了节点(主机名,名称解析等),并且此权限将使用与主机名关联的地址(这可能不是:在云服务上,则应确保私有接口),这将始终执行正确的操作用来)。

On Rackspace Cloud Servers you will most likely want to listen on eth1 (10.XXX), the ServiceNet IP. 在Rackspace Cloud Server上,您很可能希望在eth1(10.XXX)(ServiceNet IP)上进行监听。 This is only accessible to other Cloud Servers inside the same datacenter. 只有同一数据中心内的其他Cloud Server才能访问此服务器。 The max throughput of eth1 is twice that of eth0 and you are not charged for the bandwidth. eth1的最大吞吐量是eth0的两倍,因此无需为带宽付费。

Please remember that the ServiceNet network is not private so you will still need to restrict access to the ports that you bind to via iptables. 请记住,ServiceNet网络不是私有的,因此您仍然需要限制对通过iptables绑定的端口的访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM