Hi,
AFAIK there is no supported way to prevent the ML process from starting.
Having said that, you may try running this inside your ES directory:
rm -rf modules/x-pack-ml
However, as I said, it's not tested nor supported so you might run into unexpected behavior/consequences.
The reason for these unexpected consequences might be some other ES/Kibana functionality using ML indirectly. If you happen to be using such a functionality, you might get errors in the logs and/or showing up as toasts in the browser.
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.