I have two computers A(192.168.0.224) and B(192.168.0.123) and there is a ES server on each computer. Config file elasticsearch.yml on A:
cluster.name: elasticssearch
node.name: node-1
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: 192.168.0.224:9200,192.168.0.123:9200
index.analysis.analyzer.default.type: ik
script.engine.groovy.inline.update: on
script.engine.groovy.inline.search: on
index.mapper.dynamic : false
Config file elasticsearch.yml on B:
cluster.name: elasticssearch
node.name: node-2
network.host: 0.0.0.0
discovery.zen.ping.unicast.hosts: 192.168.0.224:9200,192.168.0.123:9200
index.analysis.analyzer.default.type: ik
script.engine.groovy.inline.update: on
script.engine.groovy.inline.search: on
index.mapper.dynamic : false
I start ES server and get the error information:
[2016-08-01 10:05:42,683][WARN ][discovery.zen.ping.unicast] [node-2] failed to send ping to [{#zen_unicast_2#}{192.168.0.224}{192.168.0.224:9200}]
ReceiveTimeoutTransportException[[][192.168.0.224:9200][internal:discovery/zen/unicast] request_id [1] timed out after [3750ms]]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:679)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
how to run elasticsearch server on different computers correctly?