Hi All, build jar file from the beam quickstart. while run the jar on Flinkcluster got below error.? anybody got this error? Could you please help how to resolve this? root1@master:~/NAI/Tools/flink-1.3.0$ bin/flink run -c org.apache.beam.examples.WordCount /home/root1/NAI/Tools/word-count-beam/target/word-count-beam-bundled-0.1.jar --runner=FlinkRunner --filesToStage=/home/root1/NAI/Tools/word-count-beam/target/word-count-beam-bundled-0.1.jar --inputFile=hdfs://master:9000/test/wordcount_input.txt --output=hdfs://master:9000/test/wordcount_output919 This is the output I get: Caused by: java.lang.IllegalStateException: Unable to find registrar for hdfs at org.apache.beam.sdk.io.FileSystems.getFileSystemInternal(FileSystems.java:447) at org.apache.beam.sdk.io.FileSystems.matchNewResource(FileSystems.java:517) at org.apache.beam.sdk.io.FileBasedSink.convertToFileResourceIfPossible(FileBasedSink.java:204) at org.apache.beam.sdk.io.TextIO$Write.to(TextIO.java:296) at org.apache.beam.examples.WordCount.main(WordCount.java:182) 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:528) ... 13 more Thanks & Regards, Ramanji. |
Thank you Aljoscha. With above steps working wordcount beam using quick start program. When running on actual beam source tree getting following error. root1@master:~/Projects/beam/e master * release-2.0.0 ==> beam source code root1@master:~/Projects/beam/e root1@master:~/Projects/beam/e [INFO] \- org.apache.beam:beam-runners-f [INFO] +- org.apache.flink:flink-clients [INFO] | +- org.apache.flink:flink-optimiz [INFO] | \- org.apache.flink:force-shading [INFO] +- org.apache.flink:flink-core:ja [INFO] | +- org.apache.flink:flink-annotat [INFO] +- org.apache.flink:flink-metrics [INFO] +- org.apache.flink:flink-java:ja [INFO] | +- org.apache.flink:flink-shaded- [INFO] +- org.apache.flink:flink-runtime [INFO] +- org.apache.flink:flink-streami root1@master:~/Projects/beam/e root1@master:~/Projects/beam/e Error Log: INFO: Received job wordcount-root1-0830134254-67b Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Disconnect from JobManager null. Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Connect to JobManager Actor[akka.tcp://flink@master: Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Connected to JobManager at Actor[akka.tcp://flink@master: Connected to JobManager at Actor[akka.tcp://flink@master: Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Sending message to JobManager akka.tcp://flink@master:6123/u Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Upload jar files to job manager akka.tcp://flink@master:6123/u Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.blob. INFO: Blob client connecting to akka.tcp://flink@master:6123/u Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Submit job to the job manager akka.tcp://flink@master:6123/u Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Terminate JobClientActor. Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Disconnect from JobManager Actor[akka.tcp://flink@master: Aug 30, 2017 7:12:56 PM org.apache.flink.runtime.clien INFO: Job execution failed Aug 30, 2017 7:12:56 PM akka.event.slf4j.Slf4jLogger$$ INFO: Shutting down remote daemon. Aug 30, 2017 7:12:56 PM akka.event.slf4j.Slf4jLogger$$ INFO: Remote daemon shut down; proceeding with flushing remote transports. Aug 30, 2017 7:12:56 PM akka.event.slf4j.Slf4jLogger$$ INFO: Remoting shut down. Aug 30, 2017 7:12:56 PM org.apache.beam.runners.flink. SEVERE: Pipeline execution failed org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.Remote at org.apache.flink.client.Remote at org.apache.flink.api.java.Remo at org.apache.beam.runners.flink. at org.apache.beam.runners.flink. at org.apache.beam.sdk.Pipeline.r at org.apache.beam.sdk.Pipeline.r at org.apache.beam.examples.WordC at sun.reflect.NativeMethodAccess at sun.reflect.NativeMethodAccess at sun.reflect.DelegatingMethodAc at java.lang.reflect.Method.invok at org.codehaus.mojo.exec.ExecJav at java.lang.Thread.run(Thread.ja Caused by: org.apache.flink.runtime.clien at org.apache.flink.runtime.execu at org.apache.flink.runtime.jo at org.apache.flink.runtime.jobma at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at org.apache.flink.runtime.Leade at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at org.apache.flink.runtime.LogMe at org.apache.flink.runtime.LogMe at scala.PartialFunction$class.ap at org.apache.flink.runtime.LogMe at akka.actor.Actor$class.aroundR at org.apache.flink.runtime.jobma at akka.actor.ActorCell.receiveMe at akka.actor.ActorCell.invoke(Ac at akka.dispatch.Mailbox.processM at akka.dispatch.Mailbox.run(Mail at akka.dispatch.ForkJoinExecutor at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork Caused by: java.lang.Exception: Deserializing the InputFormat (org.apache.beam.runners.flink at org.apache.flink.runtime.jobgr at org.apache.flink.runtime.execu ... 24 more Caused by: org.apache.flink.runtime.opera at org.apache.flink.runtime.opera at org.apache.flink.runtime.jobgr ... 25 more Caused by: java.lang.ClassNotFoundExcepti at java.net.URLClassLoader.findCl at java.lang.ClassLoader.loadClas at java.lang.ClassLoader.loadClas at java.lang.Class.forName0(Nativ at java.lang.Class.forName(Class. at org.apache.flink.util.Instanti at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.defa at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at org.apache.flink.util.Instanti at org.apache.flink.util.Instanti at org.apache.flink.runtime.opera ... 26 more [WARNING] java.lang.reflect.InvocationTa at sun.reflect.NativeMethodAccess at sun.reflect.NativeMethodAccess at sun.reflect.DelegatingMethodAc at java.lang.reflect.Method.invok at org.codehaus.mojo.exec.ExecJav at java.lang.Thread.run(Thread.ja Caused by: java.lang.RuntimeException: Pipeline execution failed at org.apache.beam.runners.flink. at org.apache.beam.sdk.Pipeline.r at org.apache.beam.sdk.Pipeline.r at org.apache.beam.examples.WordC ... 6 more Caused by: org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.progra at org.apache.flink.client.Remote at org.apache.flink.client.Remote at org.apache.flink.api.java.Remo at org.apache.beam.runners.flink. at org.apache.beam.runners.flink. ... 9 more Caused by: org.apache.flink.runtime.clien at org.apache.flink.runtime.execu at org.apache.flink.runtime.jo at org.apache.flink.runtime.jobma at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at org.apache.flink.runtime.Leade at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at scala.runtime.AbstractPartialF at org.apache.flink.runtime.LogMe at org.apache.flink.runtime.LogMe at scala.PartialFunction$class.ap at org.apache.flink.runtime.LogMe at akka.actor.Actor$class.aroundR at org.apache.flink.runtime.jobma at akka.actor.ActorCell.receiveMe at akka.actor.ActorCell.invoke(Ac at akka.dispatch.Mailbox.processM at akka.dispatch.Mailbox.run(Mail at akka.dispatch.ForkJoinExecutor at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork at scala.concurrent.forkjoin.Fork Caused by: java.lang.Exception: Deserializing the InputFormat (org.apache.beam.runners.flink at org.apache.flink.runtime.jobgr at org.apache.flink.runtime.execu ... 24 more Caused by: org.apache.flink.runtime.opera at org.apache.flink.runtime.opera at org.apache.flink.runtime.jobgr ... 25 more Caused by: java.lang.ClassNotFoundExcepti at java.net.URLClassLoader.findCl at java.lang.ClassLoader.loadClas at java.lang.ClassLoader.loadClas at java.lang.Class.forName0(Nativ at java.lang.Class.forName(Class. at org.apache.flink.util.Instanti at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.defa at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at java.io.ObjectInputStream.read at org.apache.flink.util.Instanti at org.apache.flink.util.Instanti at org.apache.flink.runtime.opera ... 26 more [INFO] ------------------------------ [INFO] BUILD FAILURE |
Free forum by Nabble | Edit this page |