The main method caused an error.

Samebug tips5

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 {file location}"


Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web8290

  • via Unknown by William McCarthy,
  • via Unknown by Aljoscha Krettek,
  • via Unknown by Maximilian Michels,
  • Stack trace

    • org.apache.flink.client.program.ProgramInvocationException: The main method caused an error. at org.apache.flink.client.program.PackagedProgram.callMainMethod( at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution( at org.apache.flink.client.program.Client.runBlocking( at org.apache.flink.client.CliFrontend.executeProgramBlocking( at at org.apache.flink.client.CliFrontend.parseParameters( at org.apache.flink.client.CliFrontend.main( Caused by: java.lang.IllegalArgumentException: Unknown 'runner' specified 'FlinkPipelineRunner', supported pipeline runners [BlockingDataflowPipelineRunner, DataflowPipelineRunner, DirectPipelineRunner] at at$400( at$ at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at org.apache.flink.client.program.PackagedProgram.callMainMethod( ... 6 more Caused by: java.lang.ClassNotFoundException: FlinkPipelineRunner at at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at java.lang.Class.forName0(Native Method) at java.lang.Class.forName( at ... 14 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    2 times, last one
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    1669 more bugmates