Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6213

Beam LocalFilesystem does not match glob patterns in windows

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 2.8.0
    • 2.10.0
    • sdk-java-core

    Description

      Reported stack trace:
      [WARNING]
      org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.nio.file.InvalidPathException: Illegal char <*> at index 0: *.xml
      at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:332)
      at org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:302)
      at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:197)
      at org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:64)
      at org.apache.beam.sdk.Pipeline.run(Pipeline.java:313)
      at org.apache.beam.sdk.Pipeline.run(Pipeline.java:299)
      at org.apache.beam.examples.TestFileIO.runCopyFile(TestFileIO.java:80)
      at org.apache.beam.examples.TestFileIO.main(TestFileIO.java:35)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:282)
      at java.lang.Thread.run(Thread.java:748)
      Caused by: java.nio.file.InvalidPathException: Illegal char <*> at index 0: *.xml
      at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
      at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
      at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94)
      at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255)
      at java.nio.file.Paths.get(Paths.java:84)
      at org.apache.beam.sdk.io.LocalFileSystem.matchOne(LocalFileSystem.java:217)
      at org.apache.beam.sdk.io.LocalFileSystem.match(LocalFileSystem.java:90)
      at org.apache.beam.sdk.io.FileSystems.match(FileSystems.java:119)
      at org.apache.beam.sdk.io.FileSystems.match(FileSystems.java:140)
      at org.apache.beam.sdk.io.FileSystems.match(FileSystems.java:152)
      at org.apache.beam.sdk.io.FileIO$MatchAll$MatchFn.process(FileIO.java:636)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------

      Attachments

        Issue Links

          Activity

            People

              iemejia Ismaël Mejía
              iemejia Ismaël Mejía
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h