码迷,mamicode.com
首页 > 其他好文 > 详细

logstash启动报错 Exception in thread ">output" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]

时间:2014-10-10 11:35:24      阅读:397      评论:0      收藏:0      [点我收藏+]

标签:io   os   ar   java   for   sp   on   cti   log   

部署ELK时候,logstash启动报错

Sending logstash logs to /var/log/logstash.log.
Exception in thread ">output" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]
    at org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$3.onTimeout(org/elasticsearch/action/support/master/TransportMasterNodeOperationAction.java:180)
    at org.elasticsearch.cluster.service.InternalClusterService$NotifyTimeout.run(org/elasticsearch/cluster/service/InternalClusterService.java:492)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(java/util/concurrent/ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(java/util/concurrent/ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(java/lang/Thread.java:722)

检查EA配置,发现系修改了Cluster名字所致,修改Logstash Output属性:

   elasticsearch {
      host => "127.0.0.1"
      port => 9300
      cluster => "us-elasticsearch"
    }

增加cluster属性,重启即可!

logstash启动报错 Exception in thread ">output" org.elasticsearch.discovery.MasterNotDiscoveredException: waited for [30s]

标签:io   os   ar   java   for   sp   on   cti   log   

原文地址:http://www.cnblogs.com/jincheng0923/p/4015228.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!