📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-7.15

简而言之,当Elasticsearch的Watcher功能由于HTTP错误而无法连接到指定的主机和端口时,就会出现此错误。这可能是由于网络问题、主机/端口配置不正确或目标服务器宕机造成的。要解决此问题,您可以检查网络连接、验证主机和端口设置,或确保目标服务器已启动并运行。此外,请检查服务器日志以查找可能导致HTTP错误的任何特定问题。

日志上下文 #

日志“Watch[{}] attachment[{}] HTTP error status host[{}]; port[{}];”的类名是 HttpEmailAttachementParser.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入理解的人参考:

"method[{}]; path[{}]; status[{}]";
context.watch().id(); attachment.id(); httpRequest.host(); httpRequest.port(); httpRequest.method();
httpRequest.path(); response.status());
}
} else {
    throw new ElasticsearchException("Watch[{}] attachment[{}] HTTP error status host[{}]; port[{}]; " +
        "method[{}]; path[{}]; status[{}]";
    context.watch().id(); attachment.id(); httpRequest.host(); httpRequest.port(); httpRequest.method();
    httpRequest.path(); response.status());
}
}