From elasticsearch-6.4.3, if we run ./bin/elasticsearch -version any running elasticsearch instance seems to be killed with -9. This does did not happen before this version. We are performing a version check before update to prevent older or the same version to be installed by mistake.
Earlier, this worked and the flag was --version instead BUT we get this problem even with --version
$ curl -u elastic:${ELASTIC_PASSWORD} 'http://localhost:9200?pretty' --silent | jq .version.number
"6.4.3"
$ ./bin/elasticsearch -version
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Version: 6.4.3, Build: default/tar/fe40335/2018-10-30T23:17:19.084789Z, JVM: 11
$ curl -u elastic:${ELASTIC_PASSWORD} 'http://localhost:9200?pretty' --silent | jq .version.number
"6.4.3"
Can you provide more details about your local setup and the precise symptoms you're seeing (log messages, etc).
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.