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

版本: 6.8-8.9

简而言之,当 Elasticsearch 无法找到指定位置时会发生此错误。这可能是由于配置文件中的路径缺失或不正确,或者 Elasticsearch 集群中缺少索引或文档造成的。要解决此问题,您可以检查 Elasticsearch 配置文件中是否有任何不正确的路径并予以更正。另外,您可以验证索引或文档是否存在于 Elasticsearch 集群中。如果不存在,您可能需要创建它。最后,确保 Elasticsearch 服务具有访问指定位置所需的权限。

日志上下文 #

日志 “missing location” 的类名是 FsRepository.java。我们从 Elasticsearch 源代码中提取了以下内容,供寻求深入了解的人员参考:

if (location.isEmpty()) {
    logger.warn(
        "the repository location is missing; it should point to a shared file system location"
        + " that is available on all master and data nodes"
    );
    throw new RepositoryException(metadata.name(); "missing location");
}
Path locationFile = environment.resolveRepoFile(location);
if (locationFile == null) {
    if (environment.repoFiles().length > 0) {
        logger.warn(