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
Support Elasticsearch 5 #259
Comments
Are you able to tackle this change in a pull request? |
You have to change:
to
|
Looks like we need a test then to poll for which version ES we are connecting too before running any export action. That shouldn't be too bad. |
Yes, or parameterize is on the command line somewhere, which might be easier to do as a quick fix. Polling is definitely a cleaner / safer option though, as it's error-prone otherwise |
Test before any action would be the most convenient way. So the user isn't bothered with any version-specific stuff. |
I'd like to point out that I just tried: elasticdump --input=http://staging.elasticsearch:9200/some-index --output=http://localhost:9200/some-index --type=data Where |
This works well because the query for reading is fine for ES 2.x |
Is it possible to support ingest pipeline name introduced in ES 5.0.0? |
adding to the from line 319: var self = this; It reads pipeline from "{"index":{"_id":123,"_type":"my_type","pipeline":"my_pipeline"}}." and deliveres to ES correctly. |
Got another exception after the patch from @sspilleman:
|
Getting the same error as @schmandforke with kibana 5.0.2 |
Support for ES 5 will be solved by #268 |
@schmandforke and @trompx can you please create a new issue for what you are seeing with kibana, including an index dump which can be used to test against. |
@AlexKovalevich how did you attach pipeline to the index? I am trying to restore the dump from the old server using the pipeline with the elasticdump to avoid reindexing, and I added the pipeline to the extrafields in elasticsearch.js but it is still not restoring the dump without the fields I want to get rid of from the old machine |
elasticdump 5.1.0, elasticsearch 5.5.1 Problem solved |
@nan008 From what I can see in your comment your source may not have pipeline values at first place. In this case the solution may differ. Keep in mind, that when you import one document, you can add pipeline as request param So, if ES DUMP supports it, I'd try reimporting docs by one with explicit pipeline parameter, if it doesn't - I don't clean stream based solution. You'd have to add "pipeline":"pipeline_name" to your dump somehow. |
elasticdump 2.4.2, elasticsearch 5.0.0-beta1
Sun, 25 Sep 2016 13:07:15 GMT | starting dump
Sun, 25 Sep 2016 13:07:15 GMT | Error Emitted => {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}
Sun, 25 Sep 2016 13:07:15 GMT | Total Writes: 0
Sun, 25 Sep 2016 13:07:15 GMT | dump ended with error (get phase) => Error: {"error":{"root_cause":[{"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36}],"type":"parsing_exception","reason":"The field [fields] is no longer supported, please use [stored_fields] to retrieve stored fields or _source filtering if the field is not stored","line":1,"col":36},"status":400}
As a workaround, the following works:
elasticdump --input=http://localhost:9200 --output=abc.json --type=data --searchBody '{"query": { "match_all": {} }, "stored_fields": ["*"], "_source": true }'
The text was updated successfully, but these errors were encountered: