when i try to create a keystore but got an error as >uninitialized constant LogStash::Util::Password, how to resolve this?
[elk@centos70_112 logstash-7.11.1]$ ./bin/logstash-keystore --path.settings /home/gd4400/apphome/logstash-7.11.1/config create
Using bundled JDK: /home/gd4400/apphome/logstash-7.11.1/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
ERROR: Failed to load settings file from "path.settings". Aborting... path.setting=/home/gd4400/apphome/logstash-7.11.1/config, exception=NameError, message=>uninitialized constant LogStash::Util::Password
An Logstash keystore already exists. Overwrite ? [y/N]
My guess is that there is already a key store on disk, but the environment variable LOGSTASH_KEYSTORE_PASS isnt currently set to the password of that keystore.
So when you start the keystore app it can't unlock the keystore. The command is then offering to replace the key store for you which is the final prompt. If you are confident that there is nothing in that key store that is important and want to replace the key store you would just hit y and then hit enter.
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.