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.

flink-user | Alexander Alexandrov | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    TypeSerializerInputFormat cannot determine its type automatically

    flink-user | 2 years ago | Alexander Alexandrov
    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.

    Root Cause Analysis

    1. 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()
    2. flink-java
      ExecutionEnvironment.readFile
      1. org.apache.flink.api.java.ExecutionEnvironment.readFile(ExecutionEnvironment.java:341)
      1 frame
    3. Unknown
      SerializedFormatExample.main
      1. SerializedFormatExample$.main(SerializedFormatExample.scala:48)
      2. SerializedFormatExample.main(SerializedFormatExample.scala)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      1 frame