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

Dynamic destination write to HDFS fails with IntervalWindow in shard template

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • 2.4.0
    • None
    • None

    Description

      I am doing a windowed write with dynamic destinations and it is failing with error message :

      java.lang.IllegalArgumentException: Expect srcResourceIds and destResourceIds have the same scheme, but received hdfs, window-1970-01-01T00

       

      I am writing from IntervalWindow, for which target file name created by DefaultFilenamePolicy is going to look something like this:

      window-1970-01-01T00:00:00.000Z-1970-01-01T01:00:00.000Z-pane-0-last-00000-of-00001.avro

      When resolving the path, HadoopResourceId is used and this one is backed by java URI. The filename like above is parsed incorrectly because of ':' character introduced by window-to-string. 

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            JozoVilcek Jozef Vilcek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: