Skip to content

Fix command to run WordCount example on direct runner#102

Closed
wikier wants to merge 3 commits intoapache:asf-sitefrom
wikier:fix-quickstart-direct-runner
Closed

Fix command to run WordCount example on direct runner#102
wikier wants to merge 3 commits intoapache:asf-sitefrom
wikier:fix-quickstart-direct-runner

Conversation

@wikier
Copy link
Member

@wikier wikier commented Dec 5, 2016

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] ------------------------------------------------------------------------

@asfbot
Copy link

asfbot commented Dec 5, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/134/
--none--

@asfbot
Copy link

asfbot commented Dec 5, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/177/

Jenkins built the site at commit id 03b183c with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@davorbonaci
Copy link
Member

LGTM. Merging.

@davorbonaci
Copy link
Member

Oh, actually, the PR is modifying the content/ directory. This is automatically generated from src/. So, an equivalent change should be made in src/ and content will automatically update.

Sorry about that.

@asfbot
Copy link

asfbot commented Dec 7, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/135/
--none--

@wikier
Copy link
Member Author

wikier commented Dec 7, 2016

Ok, sorry @davorbonaci, I guess I got confused with having the generated site also in the code repository.

Anyway, ea3241e properly addresses what I wanted to patch.

@asfbot
Copy link

asfbot commented Dec 7, 2016

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/178/

Jenkins built the site at commit id ea3241e with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@davorbonaci
Copy link
Member

LGTM. Merging.

@asfgit asfgit closed this in 8cbeb0b Dec 9, 2016
robertwb pushed a commit to robertwb/incubator-beam that referenced this pull request Jun 5, 2018
robertwb pushed a commit to robertwb/incubator-beam that referenced this pull request Jun 5, 2018
melap pushed a commit to apache/beam that referenced this pull request Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants