-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error On elastic roll up job :Failed to validate the source index mappings #69
Comments
on further investigation looks like the code index type is taking defaults as "_doc" , can we expose this source_index_type with source_index as well as _doc is not a mandatory and application can create with different name as type even though its a single type per index. |
@narayananaidup this was recently known to us, there is an active PR to address this in OpenSearch repo - #4 |
The code fix is pushed will be included in our next release |
Assuming this fix went out w/ OpenSearch 1.0 |
* Cypress fix, consuming 1.1 * Data stream security excpetion issue Signed-off-by: bowenlan-amzn <[email protected]>
Tuesday Jun 01, 2021 at 17:26 GMT
Originally opened as opendistro-for-elasticsearch/index-management#449
team ,
I have created roll up policy successful and while running roll up job i am getting following error from the code ..
"Failed to validate the source index mappings."
Upon debugging from the source and printing the exception ..looks like we are assuming _doc in the mappings, hope _doc was removed in the latest elastic versions .Please clarify if I am missing or let us any known defect for this.
here is the source which got modified and the exception which we enabled to print in the logs
roll up policy which we tried
curl -XPUT "localhost:9200/_opendistro/_rollup/jobs/latest_stats_roll_up" -H 'Content-Type: application/json' -d'{"rollup":{"enabled":true,"schedule":{"interval":{"period":1,"unit":"Minutes"}},"description":"An example policy that rolls up the sample ecommerce data","source_index":"fmstats_2021-03-29","target_index":"latest_stats_rollup","page_size":1000,"delay":0,"continuous":false,"dimensions":[{"date_histogram":{"source_field":"timestamp","fixed_interval":"60m"}},{"terms":{"source_field":"portIdToClusterId"}},{"terms":{"source_field":"alias"}}],"metrics":[{"source_field":"port.rx.packets","metrics":[{"max":{}}]},{"source_field":"port.tx.packets","metrics":[{"max":{}}]}]}}'
The text was updated successfully, but these errors were encountered: