failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException:
使用SpringData连接ElasticSearch7.6.2确认路径配置正确一直报以下错误:
failed to load elasticsearch nodes : org.elasticsearch.client.transport.NoNodeAvailableException:
None of the configured nodes are available: [{#transport#-1}{uWHhZacNR9mbfojQOayyAg}{127.0.0.1}{127.0.0.1:9300}]
最后确认是使用的SpringData版本与ElasticSearch版本不匹配导致的,ElasticSearch7需要使用SpringData ElasticSearch4以上版本,
但现在4版本还没正式发布,开发测试环境使用把ElasticSearch改为6.8.3版本,功能正常
作者:不安分的程序员天朗
链接:https://www.jianshu.com/p/81b2111ee75e
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。