[
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