[
https://issues.apache.org/jira/browse/FLUME-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeff Lord updated FLUME-2056:
-----------------------------
Priority: Minor (was: Major)
> Allow SpoolDir to pass just the filename that is the source of an event
> -----------------------------------------------------------------------
>
> Key: FLUME-2056
> URL: https://issues.apache.org/jira/browse/FLUME-2056
> Project: Flume
> Issue Type: New Feature
> Reporter: Jeff Lord
> Priority: Minor
>
> Currently we allow for passing of the absolute path.
> It would be nice to just pass the filename in the event headers and allow for
> using that on the hdfs sink.
> if (annotateFileName) {
> String filename = currentFile.get().getFile().getAbsolutePath();
> for (Event event : events) {
> event.getHeaders().put(fileNameHeader, filename);
> }
> }
--
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