Usually, the binaries of the new version are placed in a different directory to the existing version binaries, rather than overwrite them, with the new elasticsearch.yml pointed at the existing logs, data and config directories. How you get download those binaries, will depend on which distribution you're using such as RPM, Debian, zip, tar, MSI, etc. Both upgrade scenarios have a section on what to do, depending on the distribution you're using.
Thanks. This is most essential information during the upgrade yet it's scarecely mentioned somewhere in the text. Additional problem with that is that by default elasticsearch.yml has all commands inside disabled (even i running configuration).
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.