beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William McCarthy (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-126) KafkaWindowedWordCountExample fails with JobName invalid
Date Fri, 18 Mar 2016 15:57:33 GMT

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

William McCarthy commented on BEAM-126:
---------------------------------------

Sweet. Thank you!

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

Mime
View raw message