Flink cannot be built for Hadoop 2.9.0 which was released on Nov. 17th, 2017.
Maven fails with the following error:
The problem is caused, because Hadoop 2.9.0 extended the Container interface with a getter (getExecutionType()) and a setter method (setExecutionType()) and adds a class dependency on ExecutionType.
Flink's UtilsTest class defines a class TestingContainer that implements the Container interface.
We cannot simply update the implementation of TestingContainer because previous versions of Hadoop do not provide ExecutionType.