You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Mubarak Seyed (JIRA)" <ji...@apache.org> on 2012/07/16 11:03:33 UTC
[jira] [Updated] (FLUME-1373) Remove hardcoded file separator in
HDFSEventSink
[ https://issues.apache.org/jira/browse/FLUME-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mubarak Seyed updated FLUME-1373:
---------------------------------
Attachment: FLUME-1373.trunk.v1.patch
The attached file is a patch. Thanks.
> Remove hardcoded file separator in HDFSEventSink
> ------------------------------------------------
>
> Key: FLUME-1373
> URL: https://issues.apache.org/jira/browse/FLUME-1373
> Project: Flume
> Issue Type: Bug
> Components: Sinks+Sources
> Reporter: Mubarak Seyed
> Priority: Trivial
> Attachments: FLUME-1373.trunk.v1.patch
>
>
> configure() in HDFSEventSink hardcodes the file separator
> {code}
> // FIXME: Not portable to Windows
> this.path = dirpath + "/" + fileName;
> {code}
> Fix is very simple, just to use
> {code}
> this.path = dirpath + System.getProperty("file.separator") + fileName;
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira