Setting number_of_shards but couldn't resolve host

Let us keep this discussion to your other thread: How does the elasticsearch expand capacity and shrink capacity?