我是靠谱客的博主 舒服小刺猬,最近开发中收集的这篇文章主要介绍elasticsearch 出现master not discovered yet, this node has not previously joined a bootstrapped (v7+),觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

elasticsearch 出现master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster问题可能的原因。

在配置elasticsearch集群时,一直只有一个master节点,启动子节点时过几秒刷一次

[node-2] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [node-1] to bootstrap a cluster: have discovered [{node-2}{tqfjP3ZPQai1s0TkV6DDRg}{50Yotz89TPKvHtU2U96glg}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=7968346112, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using [] from hosts providers and [{node-2}{tqfjP3ZPQai1s0TkV6DDRg}{50Yotz89TPKvHtU2U96glg}{127.0.0.1}{127.0.0.1:9300}{dilm}{ml.machine_memory=7968346112, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

在网上找了好久才发现(可能)需要在elasticsearch.yml配置时加上transport.tcp.port参数,希望对大家有帮助(本人并不知道为什么)。

贴上我的配置信息:
主节点:
http.cors.enabled: true http.cors.allow-origin: “*”
http.port: 9200
transport.tcp.port: 9300
cluster.name: my-application
node.name: node-1
node.master: true
node.data: true
network.host: 127.0.0.1
cluster.initial_master_nodes: [“node-1”]
discovery.seed_hosts: [“127.0.0.1:9300”,“127.0.0.1:8300”]
子节点:
http.port: 8200
transport.tcp.port: 8300
cluster.name: my-application
node.name: node-2
node.master: false
node.data: true
network.host: 127.0.0.1
cluster.initial_master_nodes: [“node-1”]
discovery.seed_hosts: [“127.0.0.1:9300”,“127.0.0.1:8300”]

ps:第一次写博客,有点激动。

最后

以上就是舒服小刺猬为你收集整理的elasticsearch 出现master not discovered yet, this node has not previously joined a bootstrapped (v7+)的全部内容,希望文章能够帮你解决elasticsearch 出现master not discovered yet, this node has not previously joined a bootstrapped (v7+)所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(46)

评论列表共有 0 条评论

立即
投稿
返回
顶部