【发布时间】:2016-06-01 00:38:34
【问题描述】:
我无法设置弹性服务器集群,因为我得到 “Master not found exception”
我的配置是
大师
node.master:true
node.data:true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["ip of master"]
tcp.port:9300
客户
node.master:false
node.data:true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["ip of master:9300"]
当我们从客户端点击 curl 'localhost:9200/_cat/master?v' 时,它显示 master not found exception。
非常感谢任何帮助。
日志
elasticsearch.service - 弹性搜索 已加载:已加载(/usr/lib/systemd/system/elasticsearch.service;已启用) 活跃:自美国东部标准时间周五 2016-02-19 07:44:33 起活跃(运行); 2 分钟 35 秒前 文档:http://www.elastic.co 进程:25531 ExecStartPre=/usr/share/elasticsearch/bin/elasticsearch-systemd-pre-exec (code=exited, status=0/SUCCESS) 主PID:25535(java) CGroup:/system.slice/elasticsearch.service └─25535 /bin/java -Xms8g -Xmx8g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFra...
2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at java.lang.Thread.run(Thread.java:745) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: [2016-02-19 07:46:49,471][INFO][rest.suppressed] /_aliases Para...iases} 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: MasterNotDiscoveredException[null] 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at org.elasticsearch.action.support.master.TransportMasterNodeAction$Async...a:205) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateList...a:239) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout....a:794) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2 月 19 日 07:46:49 centos-16gb-sgp1-01 elasticsearch[25535]: at java.lang.Thread.run(Thread.java:745)
【问题讨论】:
标签: elasticsearch