当我在使用java api运行批量插入时搜索elasticsearch时,我得到的错误是无法获取节点信息,ReceiveTimeoutTransportException并在[5000ms]之后超时。 我能对这个问题做些什么?我无法在同一时间插入和搜索,而不会抛出异常。
错误日志:
org.elasticsearch.client.transport.TransportClientNodesService$SimpleNodeSampler doSample
INFO: [Beyonder] failed to get node info for {#transport#-1}{127.0.0.1}{127.0.0.1:9302}, disconnecting...
ReceiveTimeoutTransportException[[][127.0.0.1:9302][cluster:monitor/nodes/liveness] request_id [26169] timed out after [5000ms]]
at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:696)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)