愚者求师之过,智者从师之长。

扩展ES之后,新的机器无法注册percolate

Elasticsearch | 作者 es_alfred | 发布于2016年04月23日 | 阅读数:6411

es版本:1.5.2
扩展的新机器无法注册percolate,但是老机器没问题。
[2016-04-23 01:02:01.538] [pool-13-thread-1] [ERROR] com.test.search.service.ItemPercolateServiceImpl:149 x:() - failed registerPercolate
java.util.concurrent.ExecutionException: org.elasticsearch.transport.RemoteTransportException: [es-search-1][inet[/es-search-1:9300]][indices:data/write/index]
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.getValue(BaseFuture.java:293) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.common.util.concurrent.BaseFuture$Sync.get(BaseFuture.java:280) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.common.util.concurrent.BaseFuture.get(BaseFuture.java:118) ~[elasticsearch-1.5.2.jar:na]
at com.sfebiz.search.service.ItemPercolateServiceImpl.registerPercolate(ItemPercolateServiceImpl.java:146) [search-service-1.0.2-SNAPSHOT.jar:na]
at com.sfebiz.search.service.ItemPercolateServiceImpl.doFullIndexForPercolate(ItemPercolateServiceImpl.java:256) [search-service-1.0.2-SNAPSHOT.jar:na]
at com.sfebiz.search.service.IndexServiceImpl.doFullIndex(IndexServiceImpl.java:530) [search-service-1.0.2-SNAPSHOT.jar:na]
at com.sfebiz.search.task.FullIndexTask.doFullIndex(FullIndexTask.java:105) [search-service-1.0.2-SNAPSHOT.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_71]
at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_71]
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) [spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) [spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81) [spring-context-4.0.5.RELEASE.jar:4.0.5.RELEASE]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_71]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_71]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_71]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: org.elasticsearch.transport.RemoteTransportException: [es-search-2.hz][inet[/es-search-2:9300]][indices:data/write/index]
Caused by: org.elasticsearch.transport.RemoteTransportException: [es-search-3.hz][inet[/es-search-3:9300]][indices:data/write/index]
Caused by: org.elasticsearch.index.percolator.PercolatorException: [haitao-index-20160423010241-10_252_108_141] failed to parse query [10439]
at org.elasticsearch.index.percolator.PercolatorQueriesRegistry.parsePercolatorDocument(PercolatorQueriesRegistry.java:196) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.index.percolator.PercolatorQueriesRegistry$RealTimePercolatorOperationListener.preIndex(PercolatorQueriesRegistry.java:324) ~[elasticsearch-1.5.2.jar:na
at org.elasticsearch.index.indexing.ShardIndexingService.preIndex(ShardIndexingService.java:139) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:493) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:196) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515) ~[elasticsearch-1.5.2.jar:na]
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422) ~[elasticsearch-1.5.2.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
Caused by: java.lang.NullPointerException: null
 
ES的报错如下:
[2016-04-23 12:55:25,081][WARN ][action.index             ] [es-search-2.hz] Failed to perform indices:data/write/index on remote replica [es-s
earch-5.hz][a9RQbTfeRW2GkCb0MRfVlA][es-search-5.hz][inet[/10.24.16.194:9300]][index-201604231255377-10_252_108_141][0]
org.elasticsearch.transport.RemoteTransportException: [es-search-5.hz][inet[/10.24.16.194:9300]][indices:data/write/index[r]]
Caused by: org.elasticsearch.index.percolator.PercolatorException: [index-201604231255377-10_252_108_141] failed to parse query [12290]
        at org.elasticsearch.index.percolator.PercolatorQueriesRegistry.parsePercolatorDocument(PercolatorQueriesRegistry.java:196)
        at org.elasticsearch.index.percolator.PercolatorQueriesRegistry$RealTimePercolatorOperationListener.preIndex(PercolatorQueriesRegistry.
java:324)
        at org.elasticsearch.index.indexing.ShardIndexingService.preIndex(ShardIndexingService.java:139)
        at org.elasticsearch.index.shard.IndexShard.index(IndexShard.java:493)
        at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnReplica(TransportIndexAction.java:245)
        at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceiv
ed(TransportShardReplicationOperationAction.java:249)
        at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceiv
ed(TransportShardReplicationOperationAction.java:228)
        at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:277)
        at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
        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)
Caused by: java.lang.NullPointerException
已邀请:

要回复问题请先登录注册