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

Rui Li commented on FLINK-1640:
-------------------------------

[~fhueske] Thanks for your reply. Actually Hadoop also supports leading 
whitespaces, e.g. you can create a path like
{code}
new Path("/my"," path")
{code}
and you'll get {{'/my/ path'}}.
So perhaps I can try not trim whitespaces at all and see what happens. What do 
you think?

> FileOutputFormat writes to wrong path if path ends with '/'
> -----------------------------------------------------------
>
>                 Key: FLINK-1640
>                 URL: https://issues.apache.org/jira/browse/FLINK-1640
>             Project: Flink
>          Issue Type: Bug
>          Components: API / Scala
>    Affects Versions: 0.9, 0.8.1
>            Reporter: Fabian Hueske
>            Assignee: Fabian Hueske
>            Priority: Major
>             Fix For: 0.9, 0.8.2
>
>
> The FileOutputFormat duplicates the last directory of a path, if the path 
> ends  with a slash '/'.
> For example, if the output path is specified as {{/home/myuser/outputPath/}} 
> the output is written to {{/home/myuser/outputPath/outputPath/}}.
> This bug was introduced by commit 8fc04e4da8a36866e10564205c3f900894f4f6e0



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to