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

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0, 2.0.2-alpha
    • 1.2.0, 2.0.2-alpha
    • build, test
    • None
    • Reviewed

    Description

      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

      {MR,HDFS}

      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.

      Attachments

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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            ahmed.radwan Ahmed Radwan
            philip Philip Martin
            Votes:
            0 Vote for this issue
            Watchers:
            23 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment