ElasticSerach Url报错503

ElasticSerach Url报错503

删除默认目录的文件

查了很多资料,再看自己的没毛病 E版本 elasticsearch-7.4.2-x86_64.rpm

配置文件:

cluster.name: hang
node.name: node-1
node.master: true
transport.host: 192.168.44.192
transport.tcp.port: 9300
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 0.0.0.0
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.44.192","192.168.44.193"]
cluster.initial_master_nodes: 192.168.44.192
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.zen.minimum_master_nodes: 2

查看 http://192.168.44.192:9200/ 没问题


{
  "name" : "node-1",
  "cluster_name" : "hang",
  "cluster_uuid" : "KXqeLFvXSBe1GHoFVwx9eQ",
  "version" : {
    "number" : "7.4.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "2f90bbf7b93631e52bafb59b3b049cb44ec25e96",
    "build_date" : "2019-10-28T20:40:44.881551Z",
    "build_snapshot" : false,
    "lucene_version" : "8.2.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

但是

http://192.168.44.192:9200/_cat/nodes?pretty

{   "error" : {     "root_cause" : [       {         "type" : "master_not_discovered_exception",         "reason" : null       }     ],     "type" : "master_not_discovered_exception",     "reason" : null   },   "status" : 503 }

删除默认配置文件之前的配置信息

rm -rf  /var/log/elasticsearch/*
rm -rf  /var/lib/elasticsearch/* #尤其是这个下面的nodes文件

完事
ElasticSerach Url报错503

ElasticSerach Url报错503ElasticSerach Url报错503 qq_43233213 发布了1 篇原创文章 · 获赞 0 · 访问量 50 私信 关注
上一篇:监控到503错误下的如下解决办法


下一篇:503. 下一个更大元素 II