org.apache.flink.api.common.InvalidProgramException

The type returned by the input format could not be automatically determined. Please specify the TypeInformation of the produced type explicitly.

Solutions on the web16

  • via flink-user by Alexander Alexandrov, 9 months ago
    The type returned by the input format could not be automatically determined. Please specify the TypeInformation of the produced type explicitly.
  • The implementation of the RichCoFlatMapFunction is not serializable. The object probably contains or references non serializable fields.
  • The implementation of the FlinkKafkaConsumer09 is not serializable. The object probably contains or references non serializable fields.
  • Stack trace

    • org.apache.flink.api.common.InvalidProgramException: The type returned by the input format could not be automatically determined. Please specify the TypeInformation of the produced type explicitly. at org.apache.flink.api.java.ExecutionEnvironment.readFile(ExecutionEnvironment.java:341) at SerializedFormatExample$.main(SerializedFormatExample.scala:48) at SerializedFormatExample.main(SerializedFormatExample.scala) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.