You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "William McCarthy (JIRA)" <ji...@apache.org> on 2016/03/18 15:14:33 UTC

[jira] [Created] (BEAM-126) KafkaWindowedWordCountExample fails with JobName invalid

William McCarthy created BEAM-126:
-------------------------------------

             Summary: KafkaWindowedWordCountExample fails with JobName invalid
                 Key: BEAM-126
                 URL: https://issues.apache.org/jira/browse/BEAM-126
             Project: Beam
          Issue Type: Bug
          Components: runner-flink
            Reporter: William McCarthy
            Assignee: Maximilian Michels


I get the following when I try to run the KafkaWindowedWordCountExample.

I'm able to fix it by changing line 106 of that file to:
    options.setJobName("kafkawindowword" + options.getWindowSize() + "seconds");


flink run -c org.apache.beam.runners.flink.examples.streaming.KafkaWindowedWordCountExample target/beam-1.0-SNAPSHOT.jar 
test cl-mdgy:2181 cl-pu4p:9092,cl-y06o:9093 mygroup

------------------------------------------------------------
 The program finished with the following exception:

org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
	at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:520)
	at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
	at org.apache.flink.client.program.Client.runBlocking(Client.java:248)
	at org.apache.flink.client.CliFrontend.executeProgramBlocking(CliFrontend.java:866)
	at org.apache.flink.client.CliFrontend.run(CliFrontend.java:333)
	at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1189)
	at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1239)
Caused by: java.lang.RuntimeException: Failed to construct instance from factory method FlinkPipelineRunner#fromOptions(interface com.google.cloud.dataflow.sdk.options.PipelineOptions)
	at com.google.cloud.dataflow.sdk.util.InstanceBuilder.buildFromMethod(InstanceBuilder.java:233)
	at com.google.cloud.dataflow.sdk.util.InstanceBuilder.build(InstanceBuilder.java:162)
	at com.google.cloud.dataflow.sdk.runners.PipelineRunner.fromOptions(PipelineRunner.java:57)
	at com.google.cloud.dataflow.sdk.Pipeline.create(Pipeline.java:134)
	at org.apache.beam.runners.flink.examples.streaming.KafkaWindowedWordCountExample.main(KafkaWindowedWordCountExample.java:114)
	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.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:505)
	... 6 more
Caused by: 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 com.google.cloud.dataflow.sdk.util.InstanceBuilder.buildFromMethod(InstanceBuilder.java:222)
	... 15 more
Caused by: java.lang.IllegalArgumentException: JobName invalid; the name must consist of only the characters [-a-z0-9], starting with a letter and ending with a letter or number
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)
	at org.apache.beam.runners.flink.FlinkPipelineRunner.fromOptions(FlinkPipelineRunner.java:92)
	... 20 more




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)