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

GitHub | magsol | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    GitHub comment 1#237422781

    GitHub | 7 months ago | magsol
    org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
  2. 0

    The result of .flat_map cannot be directly used to close bulk iterations

    GitHub | 7 months ago | GEOFBOT
    org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.RuntimeException

      Error while creating the data flow plan for the program: Unknown operator or data set type: null

      at org.apache.flink.api.java.operators.OperatorTranslation.translate()
    2. flink-java
      ExecutionEnvironment.createProgramPlan
      1. org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:104)
      2. org.apache.flink.api.java.operators.OperatorTranslation.translateBulkIteration(OperatorTranslation.java:196)
      3. org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:94)
      4. org.apache.flink.api.java.operators.OperatorTranslation.translateSingleInputOperator(OperatorTranslation.java:124)
      5. org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:88)
      6. org.apache.flink.api.java.operators.OperatorTranslation.translateSingleInputOperator(OperatorTranslation.java:124)
      7. org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:88)
      8. org.apache.flink.api.java.operators.OperatorTranslation.translate(OperatorTranslation.java:63)
      9. org.apache.flink.api.java.operators.OperatorTranslation.translateToPlan(OperatorTranslation.java:51)
      10. org.apache.flink.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:1035)
      11. org.apache.flink.api.java.ExecutionEnvironment.createProgramPlan(ExecutionEnvironment.java:1002)
      11 frames
    3. flink-clients
      ContextEnvironment.execute
      1. org.apache.flink.client.program.ContextEnvironment.execute(ContextEnvironment.java:58)
      1 frame
    4. flink-java
      ExecutionEnvironment.execute
      1. org.apache.flink.api.java.ExecutionEnvironment.execute(ExecutionEnvironment.java:896)
      1 frame
    5. org.apache.flink
      PythonPlanBinder.main
      1. org.apache.flink.python.api.PythonPlanBinder.runPlan(PythonPlanBinder.java:150)
      2. org.apache.flink.python.api.PythonPlanBinder.main(PythonPlanBinder.java:115)
      2 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. flink-clients
      CliFrontend.main
      1. org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:509)
      2. org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:403)
      3. org.apache.flink.client.program.ClusterClient.run(ClusterClient.java:331)
      4. org.apache.flink.client.CliFrontend.executeProgram(CliFrontend.java:775)
      5. org.apache.flink.client.CliFrontend.run(CliFrontend.java:251)
      6. org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1003)
      7. org.apache.flink.client.CliFrontend.main(CliFrontend.java:1046)
      7 frames