First this is not a problem. Just showing you that all primaries are allocated 
but nor replicas.

How to solve it?

Increase the number of nodes. Obviously elasticsearch doesn’t replicate on the 
same node
or
Reduce the number of replicas (you can do it live)
or
Live with it

Now coming back to the fact that you are trying to start a new node, the output 
you printed shows that you have only one node running.

>   "number_of_nodes" : 1,

Note that to run another node, you are not forced to define a new 
elasticsearch.yml file.

So running bin/elasticearch might be enough.


Not enough information to say more for now.

-- 
David Pilato - Developer | Evangelist 
elastic.co
@dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr 
<https://twitter.com/elasticsearchfr> | @scrutmydocs 
<https://twitter.com/scrutmydocs>





> Le 30 avr. 2015 à 10:50, James Crone <arafay...@gmail.com> a écrit :
> 
> Hello.!
> 
>       Elastic search stuck in yellow status. I searched a lot about this 
> problem and i find out same answer that to create two nodes. So i create two 
> nodes by creating two config file elasticsearch.yml and elasticsearch-1.yml 
> and start by command: 
> 
> elasticsearch -Des.config=d:/elasticsearch-1.5.0/config/elasticsearch.yml
> elasticsearch -Des.config=d:/elasticsearch-1.5.0/config/elasticsearch-1.yml
> 
> Run this command Separately.
> 
> first time its return green status. when i restarted again it shows again 
> that:
> 
> {
>   "cluster_name" : "alterduden",
>   "status" : "yellow",
>   "timed_out" : false,
>   "number_of_nodes" : 1,
>   "number_of_data_nodes" : 1,
>   "active_primary_shards" : 29,
>   "active_shards" : 29,
>   "relocating_shards" : 0,
>   "initializing_shards" : 0,
>   "unassigned_shards" : 26,
>   "number_of_pending_tasks" : 0
> }
> 
> I am also trying to allocating shards but i failed this is necessary to 
> create new index if i have to define shards? Or what should i do to fix this 
> to green ?
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to elasticsearch+unsubscr...@googlegroups.com 
> <mailto:elasticsearch+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/cc7f3fcc-3dc8-44ec-a925-ccfc54fc5e03%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/cc7f3fcc-3dc8-44ec-a925-ccfc54fc5e03%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/8F4A852F-5C28-4494-9CE4-EEC1AF3EEB0E%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to