i can see the shards which are allocated i mean all active shards are of unassigned shards and it shows status as yellow. please find below details when i check cluster health.
Was you only have one node in the cluster, Elasticsearch can only allocate the primary shards (which are all allocated) and will leave all configured replica shards unassigned. This is because Elasticsearch will not place two copies of the same shard on the same node. This is generally fine and not necessarily the cause behind the fetch error you are seeing. As the replica shards will never be allocated, you can change the index settings to not have a replica. Another, and better way to resolve the problem, would be to add more nodes to the cluster which would allow for replication and improve resiliency.
What is the specification of the host you are running this node on?
As per cluster allocation explain API, im getting all shards related info since im using only 1 node for now, it says as for each indices im getting below shards and replicas which i need to make all active shards to assigned or i need to add node to my cluster or i should not make replica shards to be allocated.
[2017-06-01T11:30:10,116][ERROR][o.e.x.m.c.i.IndexRecoveryCollector] [bngwidap107.aonnet.aon.net] collector [index-recovery] failed to collect data
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.checkGlobalBlock(TransportRecoveryAction.java:114) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.admin.indices.recovery.TransportRecoveryAction.checkGlobalBlock(TransportRecoveryAction.java:52) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$AsyncAction.<init>(TransportBroadcastByNodeAction.java:256) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:234) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:79) ~[elasticsearch-5.4.0.jar:5.4.0]
[2017-06-01T11:30:10,618][ERROR][o.e.x.m.c.c.ClusterStatsCollector] [bngwidap107.aonnet.aon.net] collector [cluster-stats] failed to collect data
org.elasticsearch.action.NoShardAvailableActionException: No shard available for [get [.ml-anomalies-filesystem_available_per_1min][data_counts][filesystem_available_per_1min-data-counts]: routing [null]]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.perform(TransportSingleShardAction.java:209) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.start(TransportSingleShardAction.java:186) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.doExecute(TransportSingleShardAction.java:95) ~[elasticsearch-5.4.0.jar:5.4.0]
at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.doExecute(TransportSingleShardAction.java:59) ~[elasticsearch-5.4.0.jar:5.4.0]
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.