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

ASF GitHub Bot commented on BEAM-2277:
--------------------------------------

GitHub user dhalperi opened a pull request:

    https://github.com/apache/beam/pull/3129

    [BEAM-2277] Cherrypick #3121 to release-2.0.0

    fbb0de129d Remove '/' entirely from determining FileSystem scheme
    a6a5ff7be3 [BEAM-2277] Add ResourceIdTester and test existing ResourceId 
implementations
    ec956c85ef Mark FileSystem and related as Experimental
    15df211c75 [BEAM-2277] HadoopFileSystem: normalize implementation
    f3540d47f1 Rename FileSystems.setDefaultConfigInWorkers
    3921163829 Fix shading of guava testlib

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dhalperi/beam cp3121

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/beam/pull/3129.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #3129
    
----
commit 8aa4a8a9b06bf1c356fc0686b26c1ea5d9983ffb
Author: Dan Halperin <[email protected]>
Date:   2017-05-12T21:59:14Z

    [BEAM-2277] Cherrypick #3121 to release-2.0.0
    
    fbb0de129d Remove '/' entirely from determining FileSystem scheme
    a6a5ff7be3 [BEAM-2277] Add ResourceIdTester and test existing ResourceId 
implementations
    ec956c85ef Mark FileSystem and related as Experimental
    15df211c75 [BEAM-2277] HadoopFileSystem: normalize implementation
    f3540d47f1 Rename FileSystems.setDefaultConfigInWorkers
    3921163829 Fix shading of guava testlib

----


> IllegalArgumentException when using Hadoop file system for WordCount example.
> -----------------------------------------------------------------------------
>
>                 Key: BEAM-2277
>                 URL: https://issues.apache.org/jira/browse/BEAM-2277
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>            Reporter: Aviem Zur
>            Assignee: Aviem Zur
>            Priority: Blocker
>             Fix For: 2.0.0
>
>
> IllegalArgumentException when using Hadoop file system for WordCount example.
> Occurred when running WordCount example using Spark runner on a YARN cluster.
> Command-line arguments:
> {code:none}
> --runner=SparkRunner --inputFile=hdfs:///user/myuser/kinglear.txt 
> --output=hdfs:///user/myuser/wc/wc
> {code}
> Stack trace:
> {code:none}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to