Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-7330

Unable to read file on windows - InvalidFilePathException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None
    • None
    • windows 10, flink 1.3.1

    Description

      It doesn't matter what I use for inputFormat.setFilePath() I keep getting this error:

      //doesn't work
      format.setFilePath("file:///c:/proj/test/a.txt.txt");
      
      
      format.setFilePath("file:/c:/proj/test/a.txt.txt");
      
      
      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)
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mohitanchlia Mohit Anchlia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: