org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by cebe
, 2 years ago
via flink-user by Robert Metzger, 1 year ago
The main method caused an error.
via flink-user by Stephan Ewen, 1 year ago
The main method caused an error.
via by Unknown author, 2 years ago
via GitHub by vasia
, 2 years ago
The main method caused an error.
via flink-user by Lukas Kairies, 1 year ago
The main method caused an error. The given file URI (xtreemfs:///result.txt) points to the HDFS NameNode at null, but the File System could not be initialized with that address: port out of range:-1
at org.apache.flink.core.fs.FileSystem.get(
at org.apache.flink.core.fs.Path.getFileSystem(
at org.apache.flink.runtime.jobgraph.OutputFormatVertex.initializeOnMaster(
at org.apache.flink.runtime.jobmanager.JobManager$$anonfun$receiveWithLogMessages$1$$anonfun$applyOrElse$5.apply(JobManager.scala:179)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply$mcVL$sp(AbstractPartialFunction.scala:33)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:33)
at scala.runtime.AbstractPartialFunction$mcVL$sp.apply(AbstractPartialFunction.scala:25)
at org.apache.flink.yarn.YarnJobManager$$anonfun$receiveYarnMessages$1.applyOrElse(YarnJobManager.scala:68)
at scala.PartialFunction$OrElse.apply(PartialFunction.scala:162)
at org.apache.flink.runtime.ActorLogMessages$$anon$1.apply(ActorLogMessages.scala:37)
at scala.PartialFunction$class.applyOrElse(PartialFunction.scala:118)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:254)
at akka.dispatch.Mailbox.exec(Mailbox.scala:231)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.