Elasticsearch slave and master node

You should not do that.

Keep all default values and you will be fine.
Add a 3rd node to avoid split brain issues.