* I am hoping here that master calls this builder and at that time the
* FlumeConfiguration is all set.
*/
if (FlumeConfiguration.get().getEventRPC().equals(
FlumeConfiguration.RPC_TYPE_THRIFT)) {
return new ThriftEventSink(host, port);
}
if (FlumeConfiguration.get().getEventRPC().equals(
FlumeConfiguration.RPC_TYPE_AVRO)) {
return new AvroEventSink(host, port);
}
LOG.warn("event.rpc.type not defined. It should be either"
+ " \"THRIFT\" or \"AVRO\". Defaulting to Thrift");
return new ThriftEventSink(host, port);
}
};
}