I have a very urgent question,ask for help
this is my config file:
master:
network.host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
node.master: true
bootstrap.memory_lock: false
node.data: false
node.ingest: false
discovery.zen.ping.unicast.hosts: ["192.168.8.3:31300"]
node.name: "master01"
cluster.name: "esgroup"
http.cors.enabled: true
http.cors.allow-origin: "*"
network.publish_host: "192.168.8.3"
transport.tcp.port: 31300
transport.publish_port: 31300
data:
network.host: 0.0.0.0
discovery.zen.minimum_master_nodes: 1
node.master: false
bootstrap.memory_lock: false
node.data: true
node.ingest: false
discovery.zen.ping.unicast.hosts: ["192.168.8.3:31300"]
node.name: "data01"
cluster.name: "esgroup"
http.cors.enabled: true
http.cors.allow-origin: "*"
network.publish_host: "192.168.8.4"
transport.tcp.port: 9300
transport.publish_port: 9300
I use docker to deploy master and node nodes on two machines, the command is as follows:
master:
docker run -d --name elasticsearch -p 9200:9200 -p 31300:31300 -v /root/elasticsearch.yaml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:5.5.1-apline
data:
docker run -d --name elasticsearch -p 9200:9200 -p 9300:9300-v /root/elasticsearch.yaml:/usr/share/elasticsearch/config/elasticsearch.yml elasticsearch:5.5.1-apline
It was successful at the beginning, but it will crash after the interruption, and then restart and then resume, and then crash again, so repeat
error:
[2020-07-13T01:32:36,313][INFO ][o.e.n.Node ] [master-1] started
[2020-07-13T01:32:48,541][INFO ][o.e.c.s.ClusterService ] [master-1] added {{data01}{DiVv7eMrRzareg01SvPMQA}{tn8WkquNRzOuffQFJuc_lg}{192.168.8.4}{192.168.8.4:9300},}, reason: zen-disco-node-join[{data01}{DiVv7eMrRzareg01SvPMQA}{tn8WkquNRzOuffQFJuc_lg}{10.75.2.65}{10.75.2.65:9300}]
[2020-07-13T03:44:06,098][WARN ][o.e.t.n.Netty4Transport ] [master-1] exception caught on transport layer [[id: 0xe64c0909, L:/172.17.0.3:31300 - R:/192.168.8.4:33810]], closing connection
java.io.IOException: Operation timed out
at sun.nio.ch.FileDispatcherImpl.read0(Native Method) ~[?:?]
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) ~[?:?]
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) ~[?:?]
at sun.nio.ch.IOUtil.read(IOUtil.java:197) ~[?:?]
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) ~[?:?]
at io.netty.buffer.PooledHeapByteBuf.setBytes(PooledHeapByteBuf.java:261) ~[netty-buffer-4.1.11.Final.jar:4.1.11.Final]
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) ~[netty-buffer-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:372) ~[netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:123) [netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644) [netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:544) [netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:498) [netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458) [netty-transport-4.1.11.Final.jar:4.1.11.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) [netty-common-4.1.11.Final.jar:4.1.11.Final]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
Please help me thanks