Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2623

Update ClusterMapReduceTestCase to use MiniDFSCluster.Builder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0
    • test
    • None
    • Reviewed

    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.

      Attachments

        1. MAPREDUCE-2623.r1.diff
          0.8 kB
          Harsh J
        2. MAPREDUCE-2623.r2.diff
          0.8 kB
          Harsh J

        Activity

          People

            qwertymaniac Harsh J
            jimplush Jim Plush
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: