"If you don’t configure this setting, then the node has the following roles by default: master , data , ingest , ml"
Since I have only one node, and I didn't define node.roles I think the error "MasterNotDiscoveredException" should never raised.
How can it possible that elasticsearch instance don't find itself?
Thanks Mark.
I will describe what happen to my system maybe it will help others.
I has a system with 5 nodes. In some point I was asked to use only one node since this system wasn't in real use. So I moved all indices to one node and use it. All was good in the beginning but when I tried to save some visualizations and search I get errors. After investigation I found this discussion Getting "master not discovered or elected yet" causing cluster not up in version 7.1.0 and I saw David's answer about the problem that can be if some nodes were dropped from the system. I deleted all my data from path.data but I still had the same issue. After your answer I read here that in the first time we bootstrap a cluster we must define cluster.initial_master_nodes so I did it and now it looks good.
Thanks
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.