使用netstat -lntp来看看有侦听在网络某端口的进程。当然,也可以使用 lsof。

求助: Elasticsearch 5.5.1 日志报错 failed to collect data SERVICE_UNAVAILABLE

Elasticsearch | 作者 风云帆 | 发布于2017年08月18日 | 阅读数:6092

elasticsearch的日志输出
[2017-08-16T21:13:25,469][ERROR][o.e.x.m.c.i.IndicesStatsCollector] [centos63] collector [indices-stats] failed to collect data
org.elasticsearch.cluster.block.ClusterBlockException: blocked by: [SERVICE_UNAVAILABLE/1/state not recovered / initialized];
at org.elasticsearch.cluster.block.ClusterBlocks.globalBlockedException(ClusterBlocks.java:165) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.checkGlobalBlock(TransportIndicesStatsAction.java:70) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.admin.indices.stats.TransportIndicesStatsAction.checkGlobalBlock(TransportIndicesStatsAction.java:47) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction$AsyncAction.<init>(TransportBroadcastByNodeAction.java:256) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:234) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.broadcast.node.TransportBroadcastByNodeAction.doExecute(TransportBroadcastByNodeAction.java:79) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:84) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408) ~[elasticsearch-5.5.1.jar:5.5.1]
at org.elasticsearch.client.FilterClient.doExecute(FilterClient.java:67) ~[elasticsearch-5.5.1.jar:5.5.1]

#################################

elasticsearch的配置文件
[lf@centos63 /opt/local/ELK/elasticsearch/config]$ grep -v "^#" elasticsearch.yml
cluster.name: logstash
node.name: logstash
node.attr.rack: r1
path.data: /opt/local/ELK/elasticsearch/data
path.logs: /opt/local/ELK/elasticsearch/logs
bootstrap.memory_lock: false
bootstrap.system_call_filter: false
network.host: 192.168.1.150
transport.tcp.port: 9300
transport.tcp.compress: true
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.1.150"]
discovery.zen.minimum_master_nodes: 1
gateway.recover_after_nodes: 3

xpack.security.enabled: false
 
#######################
有大神知道是哪里出错了?多谢~!
已邀请:

要回复问题请先登录注册