Hello,
I'm trying to upgrade to Marvel 2.3.3 with Elasticsearch 2.3.3 but marvel-agent seems not able to create its indices.
These are the errors logs:
[2016-05-25 17:16:01,960][ERROR][marvel.agent ] [APPS] background thread had an uncaught exception
ElasticsearchException[failed to flush exporter bulks]
at org.elasticsearch.marvel.agent.exporter.ExportBulk$Compound.flush(ExportBulk.java:104)
at org.elasticsearch.marvel.agent.exporter.ExportBulk.close(ExportBulk.java:53)
at org.elasticsearch.marvel.agent.AgentService$ExportingWorker.run(AgentService.java:201)
at java.lang.Thread.run(Thread.java:745)
Suppressed: ElasticsearchException[failed to flush [default_local] exporter bulk]; nested: ElasticsearchException[failure in bulk execution:
[0]: index [.marvel-es-1-2016.05.25], type [cluster_state], id [null], message [[.marvel-es-1-2016.05.25] IndexNotFoundException[no such index]]
[1]: index [.marvel-es-1-2016.05.25], type [node], id [null], message [[.marvel-es-1-2016.05.25] IndexNotFoundException[no such index]]
[2]: index [.marvel-es-data-1], type [node], id [NVxAuBdcSIG_UCGVti32Dg], message [[.marvel-es-data-1] IndexNotFoundException[no such index]]
[3]: index [.marvel-es-1-2016.05.25], type [indices_stats], id [null], message [[.marvel-es-1-2016.05.25] IndexNotFoundException[no such index]]
I have only 1 server in my cluster...and as you can see, the marvel indices are not created.
I also set a custom template for marvel indices:
curl -XGET http://localhost:9200/_template/custom_marvel?pretty
{
"custom_marvel" : {
"order" : 1,
"template" : ".marvel*",
"settings" : {
"index" : {
"number_of_replicas" : "0",
"mapper" : {
"dynamic" : "true"
}
}
},
"mappings" : { },
"aliases" : { }
}
}
but this doesn't fix the problem.
The only solution seems to comment the index.mapper.dynamic in the main elasticsearch configuration... and, in this situation, the marvel indices are created:
green open .marvel-2016.05.25 1 0 13815 0 20.1mb 20.1mb
green open .marvel-es-1-2016.05.25 1 0 29 3 87.8kb 87.8kb
...but I need this option.
Any idea how to fix the problem?
This is my elasticsearch.yml:
cluster.name: Test
node.name: APPS
path.data: /data/elasticsearch
bootstrap.mlockall: true
action.auto_create_index: .marvel-*, kibana-int
index.mapper.dynamic: false
index.number_of_shards: 1
index.number_of_replicas: 0
marvel.history.duration: 7
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts:
- "apps.test.dev"