服务器搭建伪集群不成功,发现不了主节点

来源:9-4 IK分词器构建(4)

穿旗袍的姑娘

2020-01-07

配置和老师的配置是一样的 本地是没问题的,但是在服务器上就有问题啦
服务器的配置如下:

cluster.name: dianping
node.name: node-1
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.seed_hosts: ["115.29.211.152:9300", "115.29.211.152:9301"]
cluster.initial_master_nodes: ["115.29.211.152:9300", "115.29.211.152:9301"]

这个是node-1的yml配置,node-2只是修改了port参数
启动后有如下报错

[2020-01-07T18:02:57,630][WARN ][o.e.c.c.ClusterFormationFailureHelper] [node-2] master not discovered yet, 
this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover
master-eligible nodes [115.29.211.152:9300, 115.29.211.152:9301] to bootstrap a cluster: have discovered [{node-2}
{t2LF21dURFWaOIaIRit2qA}{B_y6thvTTY2zO7G4oCVjgQ}{172.16.100.21}{172.16.100.21:9301}{dim}
{ml.machine_memory=1928933376, xpack.installed=true, ml.max_open_jobs=20}]; discovery will continue using 
[115.29.211.152:9300, 115.29.211.152:9301] from hosts providers and [{node-2}{t2LF21dURFWaOIaIRit2qA}
{B_y6thvTTY2zO7G4oCVjgQ}{172.16.100.21}{172.16.100.21:9301}{dim}{ml.machine_memory=1928933376, 
xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 0, 
last-accepted version 0 in term 0

就是主节点找不到 ┭┮﹏┭┮

查看http://115.29.211.152:9200/_cat/nodes

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

1回答

龙虾三少

2020-01-07

包是不是全新的 有过数据的包有时候就会这样

0
0

ES7+Spark 构建高匹配度搜索服务+千人千面推荐系统

ElasticSearch实现高相关性搜索,Spark MLlib实现个性化推荐

1386 学习 · 559 问题

查看课程