Running unit tests on Hadoop 2

This is a quick blog post. If you’ve attempted to run the unit tests on any mavenized branch of Hadoop (Hadoop 2, Hadoop 2.0.5, Hadoop 3.0, trunk, etc.) you probably know how to do this:

$ mvn clean test

If you’ve attempted to do this, you’ve probably also been flummoxed by various unrelated unit test failures that have nothing to do with the code changes that you made. How do you get maven to continue running the unit tests with a consolidated report at the end, instead of failing with an error upon the first unit test failure? Using the following command:

$ mvn -Dmaven.test.failure.ignore=true test

Thanks Cos (Konstantin Boudnik) for this extremely useful pointer!


About Jagane Sundar

0 Responses to “Running unit tests on Hadoop 2”

  • No Comments

Leave a Reply