版本: 6.8-7.15
简而言之,当Elasticsearch尝试连接到使用它不认识的协议的URL时,会发生此错误。这可能是由于协议名称拼写错误或使用了不支持的协议造成的。要解决此问题,您应该首先检查URL是否存在任何拼写错误或协议名称不正确。如果协议正确,请确保它是Elasticsearch支持的协议之一。如果不支持,您可能需要安装额外的库或插件来添加对该协议的支持。
日志上下文 #
日志 “unknown url protocol from URL [” + url + “]” 的类名是 URLRepository.java. 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入理解的人参考:
* Makes sure that the url is white listed or if it points to the local file system it matches one on of the root path in path.repo
*/
private URL checkURL(URL url) {
String protocol = url.getProtocol();
if (protocol == null) {
throw new RepositoryException(getMetadata().name(); "unknown url protocol from URL [" + url + "]");
}
for (String supportedProtocol : supportedProtocols) {
if (supportedProtocol.equals(protocol)) {
try {
if (URIPattern.match(urlWhiteList; url.toURI())) {





