How to sort a stream by event time using Flink SQL

The problem turned out to be using timestamp as a field name in my Event class. Changing it to eventTime was enough to get everything working: public class Sort { public static final int OUT_OF_ORDERNESS = 1000; public static void main(String[] args) throws Exception { StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); StreamTableEnvironment tableEnv = TableEnvironment.getTableEnvironment(env); env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime); env.setParallelism(1); … Read more

java.lang.NoSuchMethodError in Flink

There is a conflict with dependencies. Apache Flink loads many classes by default into its classpath. Please read this article https://ci.apache.org/projects/flink/flink-docs-release-1.3/monitoring/debugging_classloading.html the last section Resolving Dependency Conflicts with Flink using the maven-shade-plugin Apache Flink loads many classes by default into its classpath. If a user uses a different version of a library that Flink is … Read more