wanghangyu817 opened a new pull request #346:
URL: https://github.com/apache/flume/pull/346


   When using memory-channel, the header is retrieved from sink and the 
metadata information of Kafka is retrieved from it, but when using 
kafka-channel, it is not retrieved
   
   `       System.out.println("***************************");
   
           Map<String, String> headers = event.getHeaders();
           String rain = headers.get("rain");
           String topic = headers.get("topic");
           String key = headers.get("key");
           String offset = headers.get("offset");
   
           System.out.println("rain = " + rain);
           System.out.println("topic = " + topic);
           System.out.println("key = " + key);
           System.out.println("offset = " + offset);
   
           System.out.println("***************************");`
   
   In the above code, the printed value is empty, so this solves the problem
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@flume.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to