I upgraded by cluster to version 7.5 and I'm trying the Transforms from Kibana but I'm having some problem that I cannot identify.
The big picture is that when I create a continuous transform with more than 4-5 aggregations, the transform is created but not the index and it can't be started. When it happens and I click on the "Start" button, the only message I receive is:
"An error occurred starting the transform XXX"
with no further detail...
I've tried creating exactly the same transform (same configuration) and changing the number of aggregations: 1, 2, 3... My final goal is creating one with 13 aggregations but I could never create any transform with more than 4 aggregations.
I also checked that is not a problem with the fields I'm aggregating, because for example, if I create 1 transform with:
avg(field1)
sum(field1)
avg(field2)
sum(field2)
avg(field3)
sum(field3)
avg(field4)
sum(field4)
It always fails, but if I do 2 transforms with the same aggregations splitted into fields1-2 and fields3-4, then both transforms works normally.
Is there some limitations in the number of transforms supported?
there is no limitation in the number of aggregations. Therefore it seems your transform fails for other reasons.
The destination index is created on start, not as part of creating the transform. On start transform checks whether the destination index exists and creates it if not. It would be good to know if the destination index gets created or not.
To further debug your issue:
Can you check the message tab of your job, you can find it in the jobs list after expanding the view, for example:
The error means in a nutshell that transform tries to create a destination index with a field subtotal_price of some simple type and a nested field subtotal_price.something, so basically an object with another field in it.
I tried to reproduce your problem: for me the UI errors for such a mapping conflict on preview. I would like to find out, why for you it does not, seems like a special case.
Can you share your configuration, e.g. for the preview, you find a copy method on the upper right corner of your preview in the UI:
FWIW: As a workaround you can rename all your nested fields, e.g subtotal_price.avg to subtotal_price_avg.
can you send me the output of the preview call, after you executed it in the dev console? It returns the mappings it would use to create the destination index.
I see nothing wrong with your config. This is a transform that fails on start for you?
the mappings look fine, however there might be another source for conflicting mappings: index templates.
To find out, you can try to create your problematic transform with a destination index not starting with the prefix orders, for example transform_orders_by_customers_min?
If that still fails and/or to check whether the suspicion is correct, can you get the index templates with:
GET /_template
and look for templates that start with orders or a template that would match orders, e.g. a template for *? The pattern is defined in the field index_patterns of the individual templates.
There is one template that is affecting the final mapping, although I don't know exactly why.
I checked all my templates and find the only one that matches the index name and review the mapping and it looks OK to me (I keep just the fields that I'm using for grouping and aggregating):
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.