Some of the hadoop tests (especially HBase) are running out of memory on Java 8, due to there not being enough heap for them
The heap size of surefire test runs is not set in MAVEN_OPTS, it needs to be explicitly set as an argument to the test run.
- hadoop-project/pom.xml defines the maximum heap size and test timeouts for surefire builds as properties
- modules which run tests use these values for their memory & timeout settings.
- these modules should also set the surefire version they want to use
- is broken by
HADOOP-10530 Make hadoop trunk build on Java7+ only
- is related to
HDFS-7490 HDFS tests OOM on Java7+
HADOOP-11984 Enable parallel JUnit tests in pre-commit.