Unable to create the index


(soujanya) #1

Hi all,

While I'm running config file, the index is not creating in elasticsearch. The same config file is running successfully in other server and index is creating. The respective log is as below...

[2015-09-07 17:02:03,241][INFO ][cluster.service ] [sample_elastic] added {[logstash-analytics.speed.com-24829-9824][iFDkDZudRfOf4I57L4JDgg][analytics.speed.com][inet[/172.22.41.150:9301]]{data=false, client=true},}, reason: zen-disco-receive(join from node[[logstash-analytics.speed.com-24829-9824][iFDkDZudRfOf4I57L4JDgg][analytics.speed.com][inet[/172.22.41.150:9301]]{data=false, client=true}])
[2015-09-07 17:02:04,841][INFO ][cluster.metadata ] [sample_elastic] [gprs-2015.09.07] creating index, cause [auto(bulk api)], templates [], shards [15]/[3], mappings []
[2015-09-07 17:03:06,487][DEBUG][action.bulk ] [sample_elastic] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
[2015-09-07 17:03:06,537][DEBUG][action.bulk ] [sample_elastic] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m]
[2015-09-07 17:03:30,159][INFO ][cluster.service ] [sample_elastic] removed {[logstash-analytics.speed.com-24829-9824][iFDkDZudRfOf4I57L4JDgg][analytics.speed.com][inet[/172.22.41.150:9301]]{data=false, client=true},}, reason: zen-disco-node_failed([logstash-analytics.speed.com-24829-9824][iFDkDZudRfOf4I57L4JDgg][analytics.speed.com][inet[/172.22.41.150:9301]]{data=false, client=true}), reason transport disconnected
[2015-09-07 17:03:47,649][INFO ][cluster.metadata ] [sample_elastic] [gprs-2015.09.07] deleting index
[2015-09-07 17:03:47,773][WARN ][action.bulk ] [sample_elastic] unexpected error during the primary phase for action [indices:data/write/bulk[s]]
java.lang.NullPointerException
at org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:128)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.doRun(TransportShardReplicationOperationAction.java:354)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase$3.onNewClusterState(TransportShardReplicationOperationAction.java:504)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.clusterChanged(ClusterStateObserver.java:177)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:498)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
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)
[2015-09-07 17:03:47,774][WARN ][action.bulk ] [sample_elastic] unexpected error during the primary phase for action [indices:data/write/bulk[s]]
java.lang.NullPointerException
at org.elasticsearch.action.bulk.TransportShardBulkAction.shards(TransportShardBulkAction.java:128)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase.doRun(TransportShardReplicationOperationAction.java:354)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$PrimaryPhase$3.onNewClusterState(TransportShardReplicationOperationAction.java:504)
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.clusterChanged(ClusterStateObserver.java:177)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:498)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
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)

Please provide the solution for this. Any help would be greatly appreciated.

Thanks in advance.


(Mark Walkom) #2

Looks like your cluster is not stable and nodes keep dropping out.
What does your cluster topography look like?


(soujanya) #3

Thanks for your prompt reply.

We are using single cluster and single node.


#4

have you changed the mapping of an already existing the API?

were you able to resolve the issue?


(system) #5