[ 
https://issues.apache.org/jira/browse/FLUME-2056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13850093#comment-13850093
 ] 

Hudson commented on FLUME-2056:
-------------------------------

FAILURE: Integrated in flume-trunk #530 (See 
[https://builds.apache.org/job/flume-trunk/530/])
FLUME-2056. Allow SpoolDir to pass just the filename that is the source of an 
event (mpercy: 
http://git-wip-us.apache.org/repos/asf/flume/repo?p=flume.git&a=commit&h=72b3b7889f1dcf6736f099b77c878efe891c6585)
* flume-ng-doc/sphinx/FlumeUserGuide.rst
* 
flume-ng-core/src/main/java/org/apache/flume/source/SpoolDirectorySourceConfigurationConstants.java
* flume-ng-core/src/main/java/org/apache/flume/source/SpoolDirectorySource.java
* 
flume-ng-core/src/test/java/org/apache/flume/source/TestSpoolDirectorySource.java
* 
flume-ng-core/src/main/java/org/apache/flume/client/avro/ReliableSpoolingFileEventReader.java


> 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
>            Assignee: Jeff Lord
>            Priority: Minor
>             Fix For: v1.5.0
>
>         Attachments: FLUME-2056-1.patch, FLUME-2056.0.patch
>
>
> 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 was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to