You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2017/08/01 11:22:01 UTC

[jira] [Commented] (FLINK-7330) Unable to read file on windows - InvalidFilePathException

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

Chesnay Schepler commented on FLINK-7330:
-----------------------------------------

Is this the full stack trace you get?

Could you provide a small self-contained reproducer? I tested calling setFilePath with both paths you used and it works fine for me.





> Unable to read file on windows - InvalidFilePathException
> ---------------------------------------------------------
>
>                 Key: FLINK-7330
>                 URL: https://issues.apache.org/jira/browse/FLINK-7330
>             Project: Flink
>          Issue Type: Bug
>         Environment: windows 10, flink 1.3.1
>            Reporter: Mohit Anchlia
>
> It doesn't matter what I use for inputFormat.setFilePath() I keep getting this error:
> {code:java}
> //doesn't work
> format.setFilePath("file:///c:/proj/test/a.txt.txt");
> format.setFilePath("file:/c:/proj/test/a.txt.txt");
> {code}
> {code:java}
> Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2: /C:/Users/m/default/flink-example/pom.xml
> at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
> at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
> at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)