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 external versioning of documents #343
Comments
That will set the version on the document but when used with custom version number, ES generates the error I referenced above. I need some way to set |
Sorry, I misread your post. Looks like an oversight which should be addressed. |
Just added support for it and published the builds. One can now specify the external type through Please try it out and let me know how it works for you. Thanks! |
Great, it might be a while before I can test this personally since we have a workaround in place and priorities are in flux. I took a peek the associated commits for this issue and I would expect them to solve the issue. Thanks. |
Sure - let me know how it goes. Any rough ETAs (just to know how to schedule the issue)? Cheers. |
Turns out that I am going to have a couple of days to work on ES after all. Expect an update by the end of the week. |
Ok, I tested with v2.1.0Beta3 (that didn't work). I didn't see a v2.1.0Beta4 but thought I would try since you tagged it in the issue. I then tested with the development snapshot and that did work. I look forward to the official release. This feature will help us out a lot. |
Something I have noticed is that if a document does produce a conflict the entire job will fail with a 409. I understand this behaviour from an ES standpoint but I'm not sure how ES-Hadoop should handle it. In my case I just want to ignore the conflict since my process guarantees that that newer versions are more up to date than older version. From a usability standpoint it does seem surprising that a single version conflict would cause a complete failure but perhaps that is the most correct stance to take. |
@aewhite Currently, es-hadoop takes a fail fast approach. In the future, we could potentially support error trapping so the problematic documents are 'logged' somewhere (which can be tricky depending on the environment - HDFS might be read-only or unavailable). |
Sounds good, in that case I guess my original issue is resolved. |
Hi, I too tried this with v2.1.0Beta3 and it din't work. Found that this was added to v2.1.0Beta4 but its not yet released right? When will v2.1.0Beta4 be out? Can you tell a date approximately or should I go with the nightly build for now? |
Try the nightly/dev build - there's no ETA for Beta4 yet. |
It is working in the nightly/dev build. Thanks |
As per ES Bulk API Docs it is possible to handle external version types. Currently when applying an external version I get the error:
Perhaps I missed a feature but my browsing of the code did not indicate that this feature was supported. I am using elasticsearch-hadoop-2.0.2 with elasticsearch-1.4.0
The text was updated successfully, but these errors were encountered: