-E is available in all elasticsearch-x CLI tools and is for configuring settings for the environment such as system properties. This is not specific to elasticsearch-keystore and cannot be used to add/set keystore settings.
bin/elasticsearch-keystore add foo
is the proper way to add setting thefoosetting to your keystore.
If you don't want to be prompted, then you can use the --stdin option and cat a file or echo a string and pipe that into the bin/elasticsearch-keystore command, see more in our docs
Yeah thanks. I made use of the echo foo-string | bin/elasticsearch-keystore and got it working. I only asked about this because if you run the command bin/elasticsearch-keystore add -h then the very first option that appears is -E.
[root@foohost ~]# /usr/share/elasticsearch/bin/elasticsearch-keystore add -h
Add a string setting to the keystore
Non-option arguments:
setting name
Option Description
------ -----------
-E <KeyValuePair> Configure a setting
-f, --force Overwrite existing setting without prompting
-h, --help show help
-s, --silent show minimal output
-v, --verbose show verbose output
-x, --stdin Read setting value from stdin
I get that both things are settings and this might get confusing for users. I'll follow up and see if we can change the -E message to something also generic which doesn't clash semantically with elasticsearch-x tools.
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.