In our company we have been using Elasticsearch 7.6.1 for two years, right now we need to update it to version 8.6.2, however, we can not move to version 8.6.2 immediately, we need first run Elasticsearch 8.6.2 beside the older version and changing beats and agents configs, move to the newest version, however when I run \elasticserach8.6.2\bin\elastichserach.bat, I faced with the following error:
[ELK] fatal exception while booting Elasticsearch
java.lang.RuntimeException: org.elasticsearch.cli.UserException: will not overwrite keystore at [E:\Config\elasticsearch.keystore], because this incurs changing the file owner
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:150) ~[elasticsearch-8.6.2.jar:?]
The mentioned directory is where contains my previous Elasticsearch config files, I don't know how to make Elasticsearch 8.6.2 read configs from its own config files.
in additional I have installed ElasticSerach 7.6.1 with .msi file on windows operating system
Are you trying to run both these on the same windows server? That is probably dangerous and this error is preventing your new system from destroying the old system!
You probably need to use a new path for everything, maybe E:/NewConfig, also E:NewData, E:/NewLogs.
Many configuration options have defaults if not specified in elasticsearch.yml. There used to be an elasticsearch_reference.yml (or simlar) file that listed all options, but it seems to have disappeared in current versions. It may get the location from the startup option location for elasticsearch.yml, yours seems to match.
But, don't trust your production data to net advise!
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.