Class ElasticsearchHandler<I extends Exceptional,O,C extends ErrorCollector<O>>

java.lang.Object
org.elasticsearch.hadoop.handler.impl.elasticsearch.ElasticsearchHandler<I,O,C>
Type Parameters:
I - type of error event
O - in case of retries, this is the type of the retry value
C - the type of error collector used
All Implemented Interfaces:
ErrorHandler<I,O,C>

public class ElasticsearchHandler<I extends Exceptional,O,C extends ErrorCollector<O>> extends Object implements ErrorHandler<I,O,C>
Generic Error Handler that converts error events into JSON documents, and stores them in an Elasticsearch index.

Handler results returned from this handler are configurable; In the case that the event is successfully written to Elasticsearch it returns HANDLED by default and if the event cannot be written for any reason it returns ABORT by default.