Error test elasticsearch 7.0.0

I installed a new version of elasticsearch on my linux server and got the following result:

curl -X GET "192.168.1.9:9200/"
{
  "name" : "Test-Node",
  "cluster_name" : "Test-Cluster",
  "cluster_uuid" : "_na_",
  "version" : {
    "number" : "7.0.0",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "b7e28a7",
    "build_date" : "2019-04-05T22:55:32.697037Z",
    "build_snapshot" : false,
    "lucene_version" : "8.0.0",
    "minimum_wire_compatibility_version" : "6.7.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

curl -uelastic -XGET 'http://192.168.1.9:9200/_cluster/health?pretty'
Enter host password for user 'elastic':
{
  "error" : {
    "root_cause" : [
      {
        "type" : "master_not_discovered_exception",
        "reason" : null
      }
    ],
    "type" : "master_not_discovered_exception",
    "reason" : null
  },
  "status" : 503
}

elasticsearch.yml

cluster.name: Test-Cluster
node.name: Test-Node
network.host: 192.168.1.9
cluster.initial_master_nodes: Test_Node

What is the problem? I can't start kibana because I can not get the elastic license.

This node hasn't found or elected a master. There should be information in the logs indicating why not.

1 Like

I think I see the problem. node.name: Test-Node doesn't agree with cluster.initial_master_nodes: Test_Node because one has a hyphen and the other has an underscore.

1 Like

:hot_face: You're right. Thank you very much

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.