Cassandra Unable to gossip with any seeds

筅森魡賤 提交于 2019-12-25 04:26:59

问题


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 Cluster Set up - Unable to gossip with any seeds Apache Cassandra: Unable to gossip with any seeds

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)

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/ ?

Could it be the datastax version uses other ports?

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.

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


回答1:


To join new node in cluster you should change cassandra.yaml of that one:

  1. Specify cluster name (should be the same for all cluster nodes):

    cluster_name: 'MyCluster'

  2. Specify seed nodes of cluster (on seed node this own ip or/and other seeds):

seed_provider:
    - class_name: org.apache.cassandra.locator.SimpleSeedProvider parameters:
        - seeds: "seed ip1, seed ip2"

This is main settings for Cassandra cluster



来源:https://stackoverflow.com/questions/39573480/cassandra-unable-to-gossip-with-any-seeds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!