[
https://issues.apache.org/jira/browse/FLUME-3023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889731#comment-15889731
]
ASF GitHub Bot commented on FLUME-3023:
---------------------------------------
GitHub user bharatjiitd opened a pull request:
https://github.com/apache/flume/pull/110
FLUME-3023 {variable} substitution doesn't work for property 'fileSuffix'
Escaped the suffix before passing it to bucket writer.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bharatjiitd/flume trunk
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flume/pull/110.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #110
----
commit 3002d18c24d63adbd07cdfb944021fc9b2ea6fd2
Author: Bharat Jain <[email protected]>
Date: 2017-02-22T05:25:29Z
flume-3023
commit 34fac95d6a1b59a4bd19b3e3a19eac3c8ff987d4
Author: Bharat Jain <[email protected]>
Date: 2017-02-22T05:25:38Z
Merge branch 'trunk' of http://git-wip-us.apache.org/repos/asf/flume into
trunk
commit 797b14b59c1802b8074f39c5abbc9b21f25c4e67
Author: Bharat Jain <[email protected]>
Date: 2017-02-28T11:52:26Z
test case changes for buckt writer
commit c9582f9c550013f1758e5a4b269ae4368d6cb015
Author: Bharat Jain <[email protected]>
Date: 2017-03-01T06:35:01Z
Merge branch 'trunk' of http://git-wip-us.apache.org/repos/asf/flume into
trunk
----
> {variable} substitution doesn't work for property 'fileSuffix'
> --------------------------------------------------------------
>
> Key: FLUME-3023
> URL: https://issues.apache.org/jira/browse/FLUME-3023
> Project: Flume
> Issue Type: Bug
> Components: Configuration
> Affects Versions: v1.6.0
> Environment: CDH5.5.1
> So, using Flume 1.6.0-cdh5.5.1
> Reporter: Karishma Gulati
> Assignee: Umesh Chaudhary
> Priority: Minor
> Attachments: FLUME-3023.patch, FLUME-3023-test.patch
>
>
> In my sink configuration, setting the value of fileSuffix as follows :
> {code}
> IngestAgent.sinks.HDFS1.hdfs.fileSuffix=_%Y%m%d.avro
> {code}
> is giving me files with names as follows :
> {code}
> /data/../../MyFileName.1479204507148_%Y%m%d.avro
> {code}
> So the variables %Y%m%d didn't get resolved.
> Works fine if I add the variables to filePrefix instead.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)