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;


原文地址:https://www.cnblogs.com/rocky-AGE-24/p/7403922.html