flume sourcetype avro http

flume  当sourcetype=http的时候可以用 curl -X POST -d '[{"headers" :{"APPSTORE" : "qq"},"body" :"CZ"}]' http://mini1:50000

     当sourcetype=avro的时候,第一种来源是上一个flume,第二种来源是 在代码中调用 flume的API 

/**
* <p>Send a single {@link Event} to the associated Flume source.</p>
*
* <p>This method blocks until the RPC returns or until the request time
*/
public void append(Event event) throws EventDeliveryException;


posted @ 2017-08-21 13:36  牵牛花  阅读(282)  评论(0)    收藏  举报