Closed
Description
Elasticsearch version:2.3.4
Plugins installed: [ 'analysis-ik', 'kopf', ' license', 'marvel-agent' ]
JVM version:Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
OS version:Debian 8
Description of the problem including expected versus actual behavior:
elasticsearch.yml
network.host: 10.160.98.78
node.name: "${HOSTNAME}_${NODE_ZONE}"
tribe:
e100:
cluster.name: logstash-es
discovery.zen.ping.timeout: 100s
network.host: 10.160.98.78
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["10.120.69.96", "10.120.69.97", ...]
e101:
cluster.name: es-new
discovery.zen.ping.timeout: 100s
network.host: 10.160.98.78
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: [ "10.63.72.10", "10.63.72.11", ..." ]
e102:
cluster.name: es-102
discovery.zen.ping.timeout: 100s
network.host: 10.160.98.78
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: [ "10.63.72.12" ]
blocks.indices.write: e100
on_conflict: prefer_e100
script.engine.groovy.inline.search: true
script.engine.groovy.inline.aggs: true
path.plugins: "/home/elk/running/elasticsearch/plugins_tribe"
Steps to reproduce:
- When the timer expires night to clean index, tribe node may not work properly (We have 2 tribe node,It seems to work fine
19.36
,98.78
error)
curl 10.160.98.78:9200/_cat/indices
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":null}],"type":"null_pointer_exception","reason":null},"status":500}
curl http://10.63.19.36:9200/_cat/indices
green open g15_zzz-2016.06.30 1 0 3 0 6.8kb 6.8kb
green open g18_tmp_nat_iptables-fileupload 1 0 1172 0 283kb 283kb
green open xy2freeclient-2016.09 1 1 70172 0 13.7mb 6.8mb
green open xy2freeclient-2016.08 1 1 1434906 0 250.1mb 125.1mb
green open appdown_accesslog-2016.08 1 1 107015373 0 34.6gb 17.3gb
- We use curator to close or delete indices
def delete(self, indices):
"""
:param indices: 删除列表
:return:
"""
w = indices if isinstance(indices, list) else [indices]
return curator.delete_indices(self.client, w)
def close(self, indices):
"""
:param indices: 关闭列表
:return:
"""
w = indices if isinstance(indices, list) else [indices]
return curator.close_indices(self.client, w)
2016-09-01 03:30:24,773 - __main__ - INFO - ---------------------- voicelog start ----------------------
GET / {} None
GET / {} None
GET /_cat/indices/voicelog-2016.08.26 {'h': 'status', u'format': 'json'} None
GET / {} None
POST /voicelog-2016.08.26/_flush/synced {} None
POST /voicelog-2016.08.26/_close {'ignore_unavailable': 'true'} None
2016-09-01 03:30:26,722 - __main__ - INFO - 关闭索引:voicelog-2016.08.26 ret:True
2016-09-01 03:30:26,722 - __main__ - INFO - 关闭5天前的index:voicelog-2016.08.26 过期天数:6
- After restart tribe node
98.78
back to normal
Provide logs (if relevant):
[2016-09-01 03:30:26,331][INFO ][tribe ] [elk-edata04-101_tribe] [e100] removing index [voicelog-2016.08.26]
[2016-09-01 03:30:26,332][WARN ][tribe ] [elk-edata04-101_tribe] failed to process [cluster event from e100, zen-disco-receive(from master [{elk-edata05-100}{Kf1SqrhFR9ywP_fMAB_Jdw}{10.120.69.109}{10.120.69.109:9300}{master=true}])]
java.lang.NullPointerException
[2016-09-01 03:30:26,741][WARN ][cluster.service ] [elk-edata04-101_tribe/e100] failed to notify ClusterStateListener
java.lang.ClassCastException: org.elasticsearch.license.plugin.core.LicensesMetaData cannot be cast to org.elasticsearch.license.plugin.core.LicensesMetaData
at org.elasticsearch.license.plugin.core.LicensesService.clusterChanged(LicensesService.java:466)
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2016-09-01 03:30:26,748][INFO ][tribe ] [elk-edata04-101_tribe] [e100] removing index [voicelog-2016.08.26]
[2016-09-01 03:30:26,748][WARN ][tribe ] [elk-edata04-101_tribe] failed to process [cluster event from e100, zen-disco-receive(from master [{elk-edata05-100}{Kf1SqrhFR9ywP_fMAB_Jdw}{10.120.69.109}{10.120.69.109:9300}{master=true}])]
java.lang.NullPointerException
[2016-09-01 03:30:31,685][WARN ][cluster.service ] [elk-edata04-101_tribe/e100] failed to notify ClusterStateListener
java.lang.ClassCastException: org.elasticsearch.license.plugin.core.LicensesMetaData cannot be cast to org.elasticsearch.license.plugin.core.LicensesMetaData
at org.elasticsearch.license.plugin.core.LicensesService.clusterChanged(LicensesService.java:466)
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:610)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:772)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
[2016-09-02 18:28:18,359][WARN ][rest.suppressed ] path: /_cat/indices, params: {}
java.lang.NullPointerException
at org.elasticsearch.rest.action.cat.RestIndicesAction.buildTable(RestIndicesAction.java:345)
at org.elasticsearch.rest.action.cat.RestIndicesAction.access$100(RestIndicesAction.java:52)
at org.elasticsearch.rest.action.cat.RestIndicesAction$1$1$1.buildResponse(RestIndicesAction.java:111)
at org.elasticsearch.rest.action.cat.RestIndicesAction$1$1$1.buildResponse(RestIndicesAction.java:108)
at org.elasticsearch.rest.action.support.RestResponseListener.processResponse(RestResponseListener.java:43)
at org.elasticsearch.rest.action.support.RestActionListener.onResponse(RestActionListener.java:49)
at org.elasticsearch.action.support.ThreadedActionListener$1.doRun(ThreadedActionListener.java:89)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)