Hi! I run 6.6.0 in several envs ok and today was trying to test a 7.0.0 setup of elastic APM before upgrading those envs but I'm facing some problems, hope anyone can help.
My setup is as follows (done with 6.6.0 successfully):
While doing same steps for 7.0.0 I cannot see the services in APM in kibana and elasticsearch is logging following errors:
"Caused by: java.lang.IllegalArgumentException: Fielddata is disabled on text fields by default. Set fielddata=true on [service.name] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead.",
"at org.elasticsearch.index.mapper.TextFieldMapper$TextFieldType.fielddataBuilder(TextFieldMapper.java:767) ~[elasticsearch-7.0.0.jar:7.0.0]",
"at org.elasticsearch.index.fielddata.IndexFieldDataService.getForField(IndexFieldDataService.java:116) ~[elasticsearch-7.0.0.jar:7.0.0]"
Your process and configuration look great except you'll need to update your template to use the 7.0.0 template export - there were significant field changes introduced in 7.0.0 that account for the issue you have encountered.
Hi @gil thanks for your response.
Yes that's what I mean, I repeated the steps including the export of template after installing apm-server 7.0.0 but now getting above errors.
note I'm not reusing the elasticsearch cluster but starting up a new one completely
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.