hi all,
when i create a new index some take yellow health and some take green health what's the probleme in ?
hi all,
when i create a new index some take yellow health and some take green health what's the probleme in ?
Do you only have 1 node? If so this is why... If not disregard... and we can look at other reasons
If so the Yellow means that the index does not have anywhere to put the replica, you can set the replicas to 0 and it will go green.. Most indices default to 1 replica so most your indices will be yellow on a single node.
to be clear there is no harm leaving it how it is...
what does this show under the settings
GET /delega
"settings" : {
"index" : {
...
"number_of_shards" : "1",
"number_of_replicas" : "1", <!--- Set to 0
PUT /delega/
{
"settings": {
"number_of_replicas": 0
}
}
Then it should go green.... OR there is no harm leaving it how it is...
PUT/delega give a bad request 400 like this:
{
"error" : {
"root_cause" : [
{
"type" : "resource_already_exists_exception",
"reason" : "index [vanne/gOsAo5RsTZqtrqpWv5U1Zw] already exists",
"index_uuid" : "gOsAo5RsTZqtrqpWv5U1Zw",
"index" : "delega"
}
],
"type" : "resource_already_exists_exception",
"reason" : "index [vanne/gOsAo5RsTZqtrqpWv5U1Zw] already exists",
"index_uuid" : "gOsAo5RsTZqtrqpWv5U1Zw",
"index" : "delega"
},
"status" : 400
}
Apologies cut-n-paste error
PUT /delega/_settings
{
"number_of_replicas": 0
}
it works well thanks
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.