[
https://issues.apache.org/jira/browse/FLUME-1373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Jarcec Cecho resolved FLUME-1373.
---------------------------------------
Resolution: Fixed
Fix Version/s: v1.3.0
Assignee: Mubarak Seyed
Committed revision 1363294.
Hi Mubarak,
I've manually changed the file separator to back slash and tried flume with it.
Everything seemed to be working and therefore I've committed your patch.
Thank you for your contribution!
Jarcec
> 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
> Assignee: Mubarak Seyed
> Priority: Trivial
> Fix For: v1.3.0
>
> 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