【发布时间】:2015-04-25 18:06:38
【问题描述】:
下面是我的基本程序
public static void main(String[] args) {
Cluster cluster;
Session session;
cluster = Cluster.builder().addContactPoint("192.168.20.131").withPort(9042).build();
System.out.println("Connection Established");
cluster.close();
}
现在我想知道我有一个 7 节点集群,并且我有 cassandra 实例在所有 7 个节点上运行。假设上面提到的 IP 地址是我的入口点,它实际上是如何工作的。假设其他用户尝试在 7 个中的任何其他 cassandra 节点上运行程序,以便输入哪个 IP 作为联络点。或者我是否必须在我的 main() 方法中添加所有 7 个节点 IP 地址逗号分隔..?
【问题讨论】: