You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2013/04/19 17:25:23 UTC
[jira] [Updated] (FLUME-2010) Support Avro records in Log4jAppender
and the HDFS Sink
[ https://issues.apache.org/jira/browse/FLUME-2010?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom White updated FLUME-2010:
-----------------------------
Attachment: FLUME-2010.patch
Here's an early patch for discussion. The idea is that you can log Avro records simply using Log4j:
{code}
Logger logger = Logger.getLogger(...);
GenericRecord appEvent = ...;
logger.info(appEvent);
{code}
and they end up in HDFS by setting the HDFS sink {{serializer}} to {{org.apache.flume.serialization.GenericAvroEventSerializer$Builder}}.
There's an example at https://github.com/tomwhite/flume-log4j-example (adapted from https://github.com/mpercy/flume-log4j-example).
> Support Avro records in Log4jAppender and the HDFS Sink
> -------------------------------------------------------
>
> Key: FLUME-2010
> URL: https://issues.apache.org/jira/browse/FLUME-2010
> Project: Flume
> Issue Type: New Feature
> Components: Client SDK, Sinks+Sources
> Reporter: Tom White
> Assignee: Tom White
> Fix For: v1.4.0
>
> Attachments: FLUME-2010.patch
>
>
> It would be nice to support logging arbitrary Avro records via the Log4j Flume logger, and have them written to HDFS in Avro data files (using an appropriately configured HDFS sink).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira