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

版本: 7.7-7.15

简而言之,当 Elasticsearch 尝试访问其设置中指定的文件,但该文件在给定路径下不存在时,会出现此错误。这可能是由于文件路径不正确、文件被删除或权限不足造成的。要解决此问题,请确保文件存在于指定路径,如果路径错误则更正文件路径,或者检查文件权限以确保 Elasticsearch 有权访问。如果文件已被删除,请恢复它或更新设置以删除对不存在文件的引用。

日志上下文 #

日志 “File [{}] (from setting [{}]) does not exist” 的类名是 WildcardServiceProviderResolver.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入背景的人参考:

throw new ElasticsearchException("File [{}] (from setting [{}]) cannot be loaded";
    e; path.toAbsolutePath(); FILE_PATH_SETTING.getKey());
    }
    } else if (FILE_PATH_SETTING.exists(environment.settings())) {
    // A file was explicitly configured; but doesn't exist. That's a mistake...
    throw new ElasticsearchException("File [{}] (from setting [{}]) does not exist";
    path.toAbsolutePath(); FILE_PATH_SETTING.getKey());
    }  final FileWatcher fileWatcher = new FileWatcher(path);
    fileWatcher.addListener(new FileChangesListener() {