Are you on linux? Windows? Do you realize the command needs to be run from the directory just above the bin directory?
For example:
bash-3.2$ pwd
/Users/richcollier/v8.6.2/elasticsearch-8.6.2
bash-3.2$ bin/elasticsearch-keystore --help
A tool for managing settings stored in the elasticsearch keystore
Commands
--------
create - Creates a new elasticsearch keystore
list - List entries in the keystore
show - Show a value from the keystore
add - Add string settings to the keystore
add-file - Add a file setting to the keystore
remove - Remove settings from the keystore
upgrade - Upgrade the keystore format
passwd - Changes the password of a keystore
has-passwd - Succeeds if the keystore exists and is password-protected, fails with exit code 1 otherwise.
Non-option arguments:
command
Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-h, --help Show help
-s, --silent Show minimal output
-v, --verbose Show verbose output
Thanks for the response @richcollier
Mine is a ECE setup and somehow I am not able to get the elasticsearch-keystore command to work
I could observe 3 different locations where the keystore is created
/var/lib/docker/overlay2/17f0e8c6e95e49e7811ede3f1825d2d2ca7f93b8b6b229cef1a0054885bb13b3/diff/usr/share/elasticsearch/bin/elasticsearch-keystore
/var/lib/docker/overlay2/bf9a571809ac1e8f1d97b5d59ca76e468ff57d9d1368ef713f44367457a79792/diff/usr/share/elasticsearch/bin/elasticsearch-keystore
/var/lib/docker/overlay2/bf9a571809ac1e8f1d97b5d59ca76e468ff57d9d1368ef713f44367457a79792/merged/usr/share/elasticsearch/bin/elasticsearch-keystore
[root@S1GZELKLCOR01 bin]# cd /var/lib/docker/overlay2/bf9a571809ac1e8f1d97b5d59ca76e468ff57d9d1368ef713f44367457a79792/diff/usr/share/elasticsearch/bin/
running the elasticsearch-keystore command from the /bin returns
bash: elasticsearch-keystore: command not found...
I recently just upgraded to the v8.6.2 version from the GUI interface
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.