ES报错:NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{-TwgnvhpSSGjrNDQ9_SSTw}{127.0.0.1}{127.0.0.1:9300}] ES无法远程连接到服务器(9300)
ES报错:NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{-TwgnvhpSSGjrNDQ9_SSTw}{127.0.0.1}{127.0.0.1:9300}] ES无法远程连接到服务器(9300)
环境
Win10
IDE 2.3.0
Elasticsearch 6.7.0
问题
编写Elasticsearch测试用例:
程序执行报错:
解决:
仔细观察ES启动信息发现端口是9200
ES默认端口是9300,写时还是用9300
重启程序:
解决!!!