解决ES报错NoNodeAvailableException[None of the configured nodes are available:问题

解决ES报错NoNodeAvailableException[None of the configured nodes are available:问题

elasticSearch的错误

NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{-kTJsUqFSb69yMQ5v1fcuw}{192.168.56.101}{192.168.56.101:9300}]

找到服务器端口 找到安装目录下的  elasticsearch.yml配置文件

找到 这一行  cluster.name:

修改成自己search的与配置文件中的cluster-name一样的名字   默认是elasticsearch  必须在本地的名字和服务器端进行统一