Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder

Details

Description

Looking at test class ClusterMapReduceTestCase it issues a warning that the dfsCluster = new MiniDFSCluster(conf, 2, reformatDFS, null); line of code is deprecated and MiniDFSCluster.Builder should be used instead. It notes that the current API will be phased out in version 24. I propose to update the test class to the most up to date code as it's referenced several places on the internet as an example of how to write a Hadoop Unit Test.

Harsh J
added a comment - 27/Jun/11 13:33 Oops, forgot that reformat was a method flag.
The test case TestJobStatusPersistence#testNonPersistence fails for me without the patch applied, for some reason. Still investigating that one.