NoNodeAvailableException[None of the configured nodes are available:

原因:Es的jar包版本要和自己安装es的版本的一致,使用公司的es集群也是如此,否则连接不上

https://blog.****.net/qq_38225558/article/details/86667932

我在elasticsearch启动测试创建索引,建立类型映射的时候报 NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{JcH99EvwRlu0rVSrVeRGNA}{127.0.0.1}{127.0.0.1:9300}]

]
,如下:

NoNodeAvailableException[None of the configured nodes are available:

解决方法:

注:测试的时候不要忘记启动elasticsearch服务端和kibana哦!! 不然也会报这种错!!!

修改elasticsearch配置文件: - 如果这样修改后还是不行的话可能就要排除是不是你的版本或者jar包依赖存在问题了哦!
NoNodeAvailableException[None of the configured nodes are available: