设置分布在两个Linux VM上的多节点Cassandra集群

时间:2016-08-12 00:06:03

标签: linux cassandra redhat

所以我今天都遵循了数据共享教程 但我仍然无法让我的cassandra集群运行起来。

这是我的yaml文件查找我的cassandra实例的方式:

  

群集名称:' MyCassandraCluster'

     

num_tokens:256

     

listen_address:9.98.171.184/9.98.171.183

     

rpc_address:9.98.171.184/9.98.171.183

     

class_name:org.apache.cassandra.locator.SimpleSeedProvider

     

参数:

     
    
      

-seeds:" 9.98.171.184"

    
  

This is the error message I am getting for the seed node

However, when I run nodetool status it runs but only for a single node. In addition, the ip address does not look right for what I set to the listen_address

我非常困惑,我真的很感激任何指导/帮助!先感谢您。

1 个答案:

答案 0 :(得分:1)

你需要把

listen_address: 9.98.171.183
rpc_address: 9.98.171.183

在一个节点上

listen_address: 9.98.171.184
rpc_address: 9.98.171.184

另一个,而不是两个IP。

一般来说,向Cassandra提供公共IP也是一个非常糟糕的想法 - 默认情况下没有授权,任何来自公共互联网的人都会弄乱您的数据。