从logstash向elasticsearch写数据的时候,如果是单节点的ES,就可以写入成功,如果是多个节点的ES集群,就会出现以下错误:
警告: [logstash-h1s5-4437-11306] waited for 30s and no initial state was set by the discovery
六月 19, 2015 10:48:49 上午 org.elasticsearch.node.internal.InternalNode start
信息: [logstash-h1s5-4437-11306] started
Failed to install template: waited for [30s] {:level=>:error}
Logstash startup completed
yhao
2015-06-19T02:57:25.046Z h1s5 yhao
word
Got error to send bulk of actions: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master]; {:level=>:error}
Failed to flush outgoing items {:outgoing_count=>1, :exception=>org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];[SERVICE_UNAVAILABLE/2/no master];, :backtrace=>["org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(org/elasticsearch/cluster/block/ClusterBlocks.java:151)"......
ES只对cluster的名字进行了改动,logstash也没有进行改动