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

Add tests for the DFS HTML and JSP pages

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Add some basic tests to look for the standard JSP pages on a locally deployed MiniMR cluster

      1. namenode: check that dfshealth is present
      2. datanode: check that all the datanode JSPs load
      3. GET the standard servlets.

      The initial checks can just use httpclient to GET the pages; no need (yet) for HtmlUnit.

      If the tests were designed to take optional URLs (e.g test.namenode.url and test.datanode.url) they could be run against processes brought up externally/remotely

      They would

      • help test that the JSP pages are being compiled down and bundled into the JARS
      • verify the classpath is getting set up right
      • check that the Jasper engine is working
      • check the servlets are all registering

      I've effectively had to do this in my own code; having a set of these tests inside hadoop would make it easier to point the blame at the classpath setup or something else.

      Attachments

        Activity

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified