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
Spark: UpdateScriptParams: JSON serialization error #351
Comments
I did some source code digging an finally was able to fix it (at least for my use cases). What I did:
It's not been thoroughly tested! You can find the changes at https://github.com/jakrol/elasticsearch-hadoop |
Hi @jakrol Thanks a lot for the bug report and for trying to fix the issue. I've posted a different type of fix in master (I've reworked a bit the JSON templating engine) to address not only your issue, but also handle the JSON values better (in particular to not quote P.S. Again, thanks for working on a fix. I hope to see more in the future 👍 Cheers, |
Hi @costin, thanks for your response. I just tried 2.1.0.BUILD-SNAPSHOT an everything works fine. Greetings, |
Great! Thanks again for everything! |
I'm using Spark and JavaEsSpark.saveJsonToEs for an upsert to Elasticsearch.
When i try to pass two parameters of type String only the second one is quoted. It's quite hard to explain so maybe a code snipplet will clarify things:
The execution results in:
Wireshark provides:
I'm using elasticsearch 1.4.2 and tried both elasticsearch-hadoop 2.1.0.Beta3 and SNAPSHOT.
Any Ideas / workarounds are appreciated.
The text was updated successfully, but these errors were encountered: