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

IllegalArgumentException when using Hadoop file system for WordCount example.

Details

    Description

      IllegalArgumentException when using Hadoop file system for WordCount example.

      Occurred when running WordCount example using Spark runner on a YARN cluster.

      Command-line arguments:

      --runner=SparkRunner --inputFile=hdfs:///user/myuser/kinglear.txt --output=hdfs:///user/myuser/wc/wc
      

      Stack trace:

      java.lang.IllegalArgumentException: Expect srcResourceIds and destResourceIds have the same scheme, but received file, hdfs.
      	at org.apache.beam.sdk.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
      	at org.apache.beam.sdk.io.FileSystems.validateSrcDestLists(FileSystems.java:394)
      	at org.apache.beam.sdk.io.FileSystems.copy(FileSystems.java:236)
      	at org.apache.beam.sdk.io.FileBasedSink$WriteOperation.copyToOutputFiles(FileBasedSink.java:626)
      	at org.apache.beam.sdk.io.FileBasedSink$WriteOperation.finalize(FileBasedSink.java:516)
      	at org.apache.beam.sdk.io.WriteFiles$2.processElement(WriteFiles.java:592)
      

      Attachments

        Activity

          People

            aviemzur Aviem Zur
            aviemzur Aviem Zur
            Votes:
            0 Vote for this issue
            Watchers:
            10 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