卡桑德拉(Cassandra)无法八卦 [英] Cassandra Unable to gossip with any seeds
问题描述
首先,我下载了Cassandra 3.7并将其安装在远程计算机上(仍在同一网络中),但是我想将此服务作为服务运行,所以我下载并安装了 DataStax_DDC_Server 3.7.0
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
但是当我尝试远程连接到服务时,我得到一个错误:无法随便散播种子
所以我遵循了几个解决该问题的方法。
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.
Cassandra群集设置-无法与任何种子八卦
Apache Cassandra:无法与任何种子八卦
我认为这不是防火墙或端口问题,因为我可以连接到其他Cassandra数据库。我还从旧的Cassandra环境(正在运行的环境)中复制了.YAML文件
I don't think its a firewall or port problem, since I could connect to the other Cassandra database. I also copied the .YAML files from the old Cassandra environment (the one that was working)
我还能尝试什么?我是否需要在datastax版本的.yaml文件中更改更多内容,而不是直接从 http://下载的版本: //cassandra.apache.org/download/ ?
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版本是否使用其他端口?
Could it be the datastax version uses other ports?
编辑:它在本地工作。另外,当我删除datastax版本时,旧的Cassandra环境也可以再次使用,但是它必须是一种服务,因此我无法使用该环境,因为它不包含服务。
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.
EDIT2:上传的cassandra.yaml
https:// www .dropbox.com / sh / wuhwc31oyztotzm / AAC0x9PcH7dIjZszpxRvDNjba?dl = 0
uploaded cassandra.yaml https://www.dropbox.com/sh/wuhwc31oyztotzm/AAC0x9PcH7dIjZszpxRvDNjba?dl=0
推荐答案
要在群集中加入新节点应该更改其中一个的cassandra.yaml:
To join new node in cluster you should change cassandra.yaml of that one:
-
指定集群名称(所有集群节点都应该相同):
Specify cluster name (should be the same for all cluster nodes):
群集名称:'MyCluster'
cluster_name: 'MyCluster'
指定群集的种子节点(在种子节点上,此IP或/和其他种子):
Specify seed nodes of cluster (on seed node this own ip or/and other seeds):
seed_provider:
-class_name:org.apache.cassandra.locator.SimpleSeedProvider参数:
&nbs p;-种子:种子ip1,种子ip2
seed_provider:
- class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters:
- seeds: "seed ip1, seed ip2"
这是Cassandra群集的主要设置
This is main settings for Cassandra cluster
这篇关于卡桑德拉(Cassandra)无法八卦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!