Elasticsearch 8.8: Master not discovered or elected yet, an election requires at least 2 nodes with ids from [..]

Thanks @vincenbr ! After removing path.data content on each node and restarting the cluster, the issue got fixed.