prepare elasticsearch and nodes