Hi
i'm writing small multi threaded app to index some random data (each
thread has it's own client). With default gateway it works fine. I
indexed 10M documents in about 90min.
ES cluster is small one - 8 nodes with 4 cores + 4GB memory.
When I installed hdfs gateway, i got strange behavior - sometimes i'm
getting following exception on client side (im using TransportClient):
Exception in thread "Thread-7"
org.elasticsearch.transport.SendRequestTransportException: [Wonder Man]
[inet[/172.17.12.1:9300]][indices/index/shard/index]
at
org.elasticsearch.transport.RemoteTransportException.fillStack(RemoteTransportException.java:
58)
at
org.elasticsearch.transport.SendRequestTransportException.fillInStackTrace(SendRequestTransportException.java:
34)
at java.lang.Throwable.(Throwable.java:218)
at java.lang.Exception.(Exception.java:59)
at java.lang.RuntimeException.(RuntimeException.java:61)
at
org.elasticsearch.ElasticSearchException.(ElasticSearchException.java:
46)
at
org.elasticsearch.transport.TransportException.(TransportException.java:
34)
at
org.elasticsearch.transport.RemoteTransportException.(RemoteTransportException.java:
39)
at
org.elasticsearch.transport.SendRequestTransportException.(SendRequestTransportException.java:
30)
at org.elasticsearch.transport.TransportService
$2.run(TransportService.java:197)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NullPointerException
at org.elasticsearch.util.io.stream.BytesStreamOutput
$Cached.cachedHandles(BytesStreamOutput.java:59)
at
org.elasticsearch.transport.netty.NettyTransport.sendRequest(NettyTransport.java:
385)
at
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:
183)
at
org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:
171)
at
org.elasticsearch.client.transport.action.support.BaseClientTransportAction.execute(BaseClientTransportAction.java:
70)
at
org.elasticsearch.client.transport.action.support.BaseClientTransportAction.execute(BaseClientTransportAction.java:
65)
at org.elasticsearch.client.transport.support.InternalTransportClient
$1.doWithNode(InternalTransportClient.java:125)
at org.elasticsearch.client.transport.support.InternalTransportClient
$1.doWithNode(InternalTransportClient.java:123)
at
org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:
144)
at
org.elasticsearch.client.transport.support.InternalTransportClient.index(InternalTransportClient.java:
123)
at
org.elasticsearch.client.transport.TransportClient.index(TransportClient.java:
223)
at com.test.App$IndexThread.index(App.java:115)
at com.test.App$IndexThread.run(App.java:34)
HDFS is also clustered across 13 nodes, and i do not see any errors in
namenode.
Any ideas?
Regards
Zaharije