You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Attila Simon (JIRA)" <ji...@apache.org> on 2016/07/12 14:17:20 UTC

[jira] [Comment Edited] (FLUME-2953) Make TaildirSource work with recursive directory

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

Attila Simon edited comment on FLUME-2953 at 7/12/16 2:17 PM:
--------------------------------------------------------------

Thanks for the patch [~wenqiao],
I tried to apply it on trunk but failed. Could you please rebase it to the latest version?

{noformat}
patch -p1 < FLUME-2953.patch
patching file flume-ng-doc/sphinx/FlumeUserGuide.rst
Hunk #1 succeeded at 1120 (offset 4 lines).
Hunk #2 succeeded at 1148 (offset 8 lines).
patching file flume-ng-sources/flume-taildir-source/src/main/java/org/apache/flume/source/taildir/ReliableTaildirEventReader.java
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 276.
2 out of 2 hunks FAILED -- saving rejects to file flume-ng-sources/flume-taildir-source/src/main/java/org/apache/flume/source/taildir/ReliableTaildirEventReader.java.rej
patching file flume-ng-sources/flume-taildir-source/src/test/java/org/apache/flume/source/taildir/TestTaildirSource.java
Hunk #1 succeeded at 75 (offset 7 lines).
Hunk #2 succeeded at 143 (offset 7 lines).
{noformat}


was (Author: sati):
Thanks for the patch [~wenqiao],
I tried to applied it on trunk but it failed. Could you please rebase it to the latest version?

{noformat}
patch -p1 < FLUME-2953.patch
patching file flume-ng-doc/sphinx/FlumeUserGuide.rst
Hunk #1 succeeded at 1120 (offset 4 lines).
Hunk #2 succeeded at 1148 (offset 8 lines).
patching file flume-ng-sources/flume-taildir-source/src/main/java/org/apache/flume/source/taildir/ReliableTaildirEventReader.java
Hunk #1 FAILED at 83.
Hunk #2 FAILED at 276.
2 out of 2 hunks FAILED -- saving rejects to file flume-ng-sources/flume-taildir-source/src/main/java/org/apache/flume/source/taildir/ReliableTaildirEventReader.java.rej
patching file flume-ng-sources/flume-taildir-source/src/test/java/org/apache/flume/source/taildir/TestTaildirSource.java
Hunk #1 succeeded at 75 (offset 7 lines).
Hunk #2 succeeded at 143 (offset 7 lines).
{noformat}

> Make TaildirSource work with recursive directory
> ------------------------------------------------
>
>                 Key: FLUME-2953
>                 URL: https://issues.apache.org/jira/browse/FLUME-2953
>             Project: Flume
>          Issue Type: Improvement
>          Components: Sinks+Sources
>    Affects Versions: v1.7.0
>            Reporter: tinawenqiao
>              Labels: Recuresive, TaildirSource, Wildcards
>             Fix For: v1.7.0
>
>         Attachments: FLUME-2953.patch
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> In TaildirSource filegroupName, regular expression can be used for filename only. Sample usage is : a1.sources.r1.filegroups.f2 = /var/log/test2/.\*log.\*
> If there are many files to be tracked in the same directory, the configuration is oft-repeated. So it‘s necessary that wildcards are supported in the directory path. Then the user can configure the filegroupName like this:
>  a1.sources.r1.filegroups.f2 = /var/log/\*/.\*log.\*



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)