Elasticsearch.2.1.1 no of shard Settings


(krishna singh) #1

hey, I want to change my Default no of shard in Es 2.1.1 version...but i am not getting any option in elasticsearch.yml file.

So i tried while creating index its showing me this error.

PUT kk

PUT kk/_settings
{
"number_of_shards": 20
}

{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "can't change the number of shards for an index"
}
],
"type": "illegal_argument_exception",
"reason": "can't change the number of shards for an index"
},
"status": 400

Please help me out.


(krishna singh) #2

it resolved


(Mark Walkom) #3

How did you resolve it?


(Imran Siddique) #4

interesting... we can't change # of shards dynamically for an index... how u solved it?


(Mark Walkom) #5

You can't on 2.X either, no idea what the "solution" was here....


(Soundarya Thiagarajan) #6

I am facing same issue. could you please tell how did you resolve it?


(system) closed #7