beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wikier <...@git.apache.org>
Subject [GitHub] incubator-beam-site pull request #102: Fix command to run WordCount example ...
Date Mon, 05 Dec 2016 08:11:39 GMT
GitHub user wikier opened a pull request:

    https://github.com/apache/incubator-beam-site/pull/102

    Fix command to run WordCount example on direct runner

    To prevent classpath issues, because direct runner is not in the default profile (that
could be a different path):
    
    ```
    [WARNING] 
    java.lang.reflect.InvocationTargetException
    	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:293)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.IllegalArgumentException: No Runner was specified and the DirectRunner
was not found on the classpath.
    Specify a runner by either:
        Explicitly specifying a runner by providing the 'runner' property
        Adding the DirectRunner to the classpath
        Calling 'PipelineOptions.setRunner(PipelineRunner)' directly
    	at org.apache.beam.sdk.options.PipelineOptions$DirectRunner.create(PipelineOptions.java:286)
    	at org.apache.beam.sdk.options.PipelineOptions$DirectRunner.create(PipelineOptions.java:276)
    	at org.apache.beam.sdk.options.ProxyInvocationHandler.returnDefaultHelper(ProxyInvocationHandler.java:575)
    	at org.apache.beam.sdk.options.ProxyInvocationHandler.getDefault(ProxyInvocationHandler.java:516)
    	at org.apache.beam.sdk.options.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:155)
    	at org.apache.beam.sdk.options.PipelineOptionsValidator.validate(PipelineOptionsValidator.java:70)
    	at org.apache.beam.sdk.options.PipelineOptionsFactory$Builder.as(PipelineOptionsFactory.java:304)
    	at io.redlink.datacamp.beam.WordCount.main(WordCount.java:174)
    	... 6 more
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    ```

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

    $ git pull https://github.com/wikier/incubator-beam-site fix-quickstart-direct-runner

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

    https://github.com/apache/incubator-beam-site/pull/102.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 #102
    
----
commit 03b183c11ca9a67805bfbc2231efb9e628d13a5c
Author: Sergio Fernández <sergio@wikier.org>
Date:   2016-12-05T08:10:01Z

    fixed command to run WordCount example on direct runner

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message