ElasticSerach Url error 503

ElasticSerach Url error 503

Remove the default directory files

Check a lot of information, do not look at their own problems E version elasticsearch-7.4.2-x86_64.rpm

Profiles:

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

View http://192.168.44.192:9200/ no problem


{
  "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"
}

but

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文件

Get away
Here Insert Picture Description

Published an original article · won praise 0 · Views 47

Guess you like

Origin blog.csdn.net/qq_43233213/article/details/104106818