版本: 6.8-6.8
简而言之,当 Elasticsearch Watcher 插件尝试向 HipChat 账户发送通知,但该账户的 profile 设置缺失时,就会出现此错误。这可能是由于配置错误或信息缺失造成的。要解决此问题,您可以在 elasticsearch.yml 文件中添加缺失的 profile 设置,或者更新 Watcher 的配置以包含 HipChat 账户所需的 profile 信息。进行这些更改后,请确保重启 Elasticsearch。
日志上下文 #
日志 “missing [profile] setting for hipchat account [” + name + “]” 的类名是 HipChatService.java。我们从 Elasticsearch 源代码中提取了以下内容,供那些需要深入了解上下文的用户参考:
@Override
protected HipChatAccount createAccount(String name; Settings accountSettings) {
HipChatAccount.Profile profile = HipChatAccount.Profile.resolve(accountSettings; "profile"; null);
if (profile == null) {
throw new SettingsException("missing [profile] setting for hipchat account [" + name + "]");
}
return profile.createAccount(name; accountSettings; defaultServer; httpClient; logger);
} private static List> getDynamicSettings() {





