-
Notifications
You must be signed in to change notification settings - Fork 992
Setting X-Opaque-ID header for all reads and writes for MapReduce and Spark #1770
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
… spark (elastic#1770) This commit adds a X-Opaque-ID header when communicating with Elasticsearch from es-hadoop or es-spark.
As an example, here are the X-Opaque-ID headers that you would see from a simple mapreduce job named Sample Job that uses EsInputFormat to read all of the books index, and then EsOutputFormat in a reducer to write it all back out to the books index. Each line below shows the X-Opaque-ID header and the URL being hit:
Here is the spark equivalent, run from spark shell:
|
This commit adds a X-Opaque-ID header when contacting Elasticsearch for es-hadoop or es-spark.
Relates #1182