简体   繁体   English

卡桑德拉(Cassandra)无法八卦

[英]Cassandra Unable to gossip with any seeds

At first I downloaded Cassandra 3.7 and installed it on a remote machine (still in the same network) But I wanted to run this as a service so I downloaded and installed the DataStax_DDC_Server 3.7.0 最初,我下载了Cassandra 3.7并将其安装在远程计算机上(仍在同一网络中),但是我想将此服务作为服务运行,因此我下载并安装了DataStax_DDC_Server 3.7.0

But when I try to connect remotely to the service I get the error: Unable to gossip with any seeds So i followed a couple solutions to that problem. 但是,当我尝试远程连接到该服务时,我得到了一个错误: Unable to gossip with any seeds因此我遵循了针对该问题的几种解决方案。

Cassandra Cluster Set up - Unable to gossip with any seeds Apache Cassandra: Unable to gossip with any seeds Cassandra群集设置-无法与任何种子八卦 Apache Cassandra:无法与任何种子八卦

I don't think its a firewall or port problem, since I could connect to the other Cassandra database. 我不认为这是防火墙或端口问题,因为我可以连接到其他Cassandra数据库。 I also copied the .YAML files from the old Cassandra environment (the one that was working) 我还从旧的Cassandra环境(正在运行的环境)中复制了.YAML文件。

What else can I try? 我还能尝试什么? Do I have to change more things in the .yaml file in the datastax version instead of the version directly downloaded from http://cassandra.apache.org/download/ ? 我是否需要在datastax版本的.yaml文件中更改更多内容,而不是直接从http://cassandra.apache.org/download/下载的版本?

Could it be the datastax version uses other ports? 可能是datastax版本使用其他端口吗?

EDIT: It works locally. 编辑:它在本地工作。 Also, when i remove the datastax version my old Cassandra environment also works again, but it needs to be a service so I cannot use that environment since it doesn't include a service. 另外,当我删除datastax版本时,旧的Cassandra环境也可以再次使用,但是它必须是一种服务,因此我无法使用该环境,因为它不包含服务。

EDIT2: uploaded cassandra.yaml https://www.dropbox.com/sh/wuhwc31oyztotzm/AAC0x9PcH7dIjZszpxRvDNjba?dl=0 EDIT2:上载cassandra.yaml https://www.dropbox.com/sh/wuhwc31oyztotzm/AAC0x9PcH7dIjZszpxRvDNjba?dl=0

To join new node in cluster you should change cassandra.yaml of that one: 要加入集群中的新节点,您应该更改该节点的cassandra.yaml:

  1. Specify cluster name (should be the same for all cluster nodes): 指定集群名称(所有集群节点都应该相同):

    cluster_name: 'MyCluster' cluster_name:'MyCluster'

  2. Specify seed nodes of cluster (on seed node this own ip or/and other seeds): 指定集群的种子节点(在种子节点上,此ip或/和其他种子):

seed_provider: seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters: -class_name:org.apache.cassandra.locator.SimpleSeedProvider参数:
- seeds: "seed ip1, seed ip2" -种子:“种子ip1,种子ip2”

This is main settings for Cassandra cluster 这是Cassandra集群的主要设置

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

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