I have a problem connecting my 2 nodes with the same cluster


#1

What Host IP should I use to bind my 2 nodes with the same cluster.

Given this configuration:

Node1:
cluster.name: sql
node.name: engineering
node.master: true
node.data: true
network.host: 127.0.0.3
transport.tcp.port: 9300-9400
http.port: 9200
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.3", "127.0.0.2"]
index.number_of_shards: 2
index.number_of_replicas: 1

Node2:
cluster.name: sql
node.name: team
node.master: false
node.data: true
network.host: 192.168.0.1
http.port: 9200
transport.tcp.port: 9300-9400
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.3","192.168.0.1:9300"]
index.number_of_shards: 2
index.number_of_replicas: 1


#2

node1 has this config too disregard the first post:
discovery.zen.ping.unicast.hosts: ["127.0.0.3","192.168.0.1:9300"]


(Mark Walkom) #3

Let's keep it in 2 nodes with the same cluster but in configured in different machines


(chalapathi) #4

Hi,

Even am facing similar issue, I have tried setting up cluster using 2 nodes each one on different machines and also I tried 2 nodes on single machine.

In both the cases the nodes are failed to connect to master nodes irrespective of specifying master node and discovery plugin.

error message is "no known master from non-maser nodes" and when connected on browser getting "Cluster block exception".

is there a proper documentation to configure cluster on 2.1.1, can any one help me on this please.

Thanks,
Chala


(system) #5