【问题标题】:In a cluster on a VM Exception encountered during startup: Unable to gossip with any seeds在 VM 上的集群中启动期间遇到异常:无法使用任何种子进行八卦
【发布时间】:2015-10-26 19:51:38
【问题描述】:

启动过程中遇到异常:无法使用任何种子进行八卦。 我有 4 个虚拟机。我将第一个虚拟机的 IP 地址作为集群的种子。 但是当我在 VM2 上安装 cassandra 时,会显示此消息。 实际上 cassandra 甚至不使用 bin/cassandra 命令也不会启动。

【问题讨论】:

  • 确保所有 Cassandra 端口均可访问以进行 VM 间通信。

标签: cassandra


【解决方案1】:

这是因为我没有关闭防火墙。

 $ service iptables status
 $ service iptables save
 $ service iptables stop

或者我们必须启用以下端口:

 $ iptables -I INPUT -p tcp -m tcp --dport 9042 -j ACCEPT
 $ iptables -I INPUT -p tcp -m tcp --dport 7000 -j ACCEPT
 $ iptables -I INPUT -p tcp -m tcp --dport 7001 -j ACCEPT
 $ iptables -I INPUT -p tcp -m tcp --dport 7199 -j ACCEPT

 $ /etc/init.d/iptables save
 $ service iptables restart

【讨论】:

    猜你喜欢
    • 2014-11-28
    • 2015-12-22
    • 2014-01-08
    • 2015-02-07
    • 2014-08-19
    • 2017-01-27
    • 2018-01-16
    • 2018-03-23
    • 1970-01-01
    相关资源
    最近更新 更多