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

Exposing MiniDFS and MiniMR clusters as a single process command-line



    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 2.0.2-alpha
    • Fix Version/s: 1.2.0, 2.0.2-alpha
    • Component/s: build, test
    • Labels:
    • Hadoop Flags:


      It's hard to test non-Java programs that rely on significant mapreduce functionality. The patch I'm proposing shortly will let you just type "bin/hadoop jar hadoop-hdfs-hdfswithmr-test.jar minicluster" to start a cluster (internally, it's using Mini


      Cluster) with a specified number of daemons, etc. A test that checks how some external process interacts with Hadoop might start minicluster as a subprocess, run through its thing, and then simply kill the java subprocess.

      I've been using just such a system for a couple of weeks, and I like it. It's significantly easier than developing a lot of scripts to start a pseudo-distributed cluster, and then clean up after it. I figure others might find it useful as well.

      I'm at a bit of a loss as to where to put it in 0.21. hdfs-with-mr tests have all the required libraries, so I've put it there. I could conceivably split this into "minimr" and "minihdfs", but it's specifically the fact that they're configured to talk to each other that I like about having them together. And one JVM is better than two for my test programs.


        1. MAPREDUCE-987_branch-1.0_rev2.patch
          17 kB
          Ahmed Radwan
        2. MAPREDUCE-987_rev4.patch
          17 kB
          Ahmed Radwan
        3. MAPREDUCE-987_rev3.patch
          17 kB
          Ahmed Radwan
        4. MAPREDUCE-987_rev2.patch
          12 kB
          Ahmed Radwan
        5. MAPREDUCE-987_branch-1.0.patch
          11 kB
          Ahmed Radwan
        6. MAPREDUCE-987.patch
          12 kB
          Ahmed Radwan
        7. MAPREDUCE-987.patch
          10 kB
          Philip Martin
        8. HDFS-621-0.20-patch
          10 kB
          Philip Martin
        9. HDFS-621.patch
          11 kB
          Philip Martin

          Issue Links



              • Assignee:
                ahmed.radwan Ahmed Radwan
                philip Philip Martin
              • Votes:
                0 Vote for this issue
                23 Start watching this issue


                • Created: