版本: 7-7.15
简要来说,当您尝试使用配置驱动的文本提示功能时,会出现此错误。该功能在 Elasticsearch 6.0.0 中已被弃用。相反,Elasticsearch 现在建议使用密钥存储库(keystore)来管理安全设置。要解决此问题,您应该将所有安全设置迁移到 Elasticsearch 密钥存储库中。可以使用 ‘elasticsearch-keystore’ 命令行工具来添加、删除或列出设置。请记住,在对密钥存储库进行更改后,需要重启 Elasticsearch 才能使更改生效。
日志上下文 #
日志 “Config driven text prompting was deprecated in 6.0.0. Use the keystore” 的类名是 InternalSettingsPreparer.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入理解的人参考:
for (String setting : output.keys()) {
final String value = output.get(setting);
if (value != null) {
switch (value) {
case SECRET_PROMPT_VALUE:
throw new SettingsException("Config driven secret prompting was deprecated in 6.0.0. Use the keystore" +
" for secure settings.");
case TEXT_PROMPT_VALUE:
throw new SettingsException("Config driven text prompting was deprecated in 6.0.0. Use the keystore" +
" for secure settings.");
}





