0
我有兩臺計算機A(192.168.0.224)和B(192.168.0.123),每臺計算機上都有一個ES服務器。基於B如何在不同的計算機上運行elasticsearch服務器?
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
配置文件elasticsearch.yml
:在一個配置文件elasticsearch.yml
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
我開始ES服務器並且得到錯誤信息:
[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)
如何運行在不同的elasticsearch服務器電腦是否正確?
謝謝您再次幫助我!尊重您! –
很高興幫助! – Val
如果想要將第三臺機器C(192.168.0.173)添加到羣集,則需要再次更新配置文件:discovery.zen.ping.unicast.hosts:192.168.0.224,192.168.0.123,192.168.0.173.I想知道是否有辦法來實現,如果一臺新機器沒有更新配置文件添加? –