Elasticsearch: Not enough master nodes discovered during pinging

You bound your nodes to localhost yet specified host names that presumably resolve to non-localhost addresses. These nodes will not be able to ping each other until you bind them to sockets reachable from each other.