我正在使用弹性搜索IO https://github.com/apache/beam/blob/master/sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java,以便将数据从Google云数据流插入弹性搜索。当我运行数据流作业时,每件事情都能正常工作但过了一段时间后我收到此错误:
java.io.IOException: Connection reset by peer
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 org.apache.http.impl.nio.reactor.SessionInputBufferImpl.fill (SessionInputBufferImpl.java:204)
at org.apache.http.impl.nio.codecs.AbstractMessageParser.fillBuffer (AbstractMessageParser.java:136)
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput (DefaultNHttpClientConnection.java:241)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady (InternalIODispatch.java:81)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady (InternalIODispatch.java:39)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady (AbstractIODispatch.java:114)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable (BaseIOReactor.java:162)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent (AbstractIOReactor.java:337)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents (AbstractIOReactor.java:315)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute (AbstractIOReactor.java:276)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute (BaseIOReactor.java:104)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run (AbstractMultiworkerIOReactor.java:588)
at java.lang.Thread.run (Thread.java:745)