Issue Details (XML | Word | Printable)

Key: HADOOP-3923
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Tsz Wo (Nicholas), SZE
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Deprecate org.apache.hadoop.mapred.StatusHttpServer

Created: 07/Aug/08 11:19 PM   Updated: 08/Jul/09 04:52 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 3923_20081111.patch 2008-11-11 05:08 PM Tsz Wo (Nicholas), SZE 29 kB
Text File Licensed for inclusion in ASF works 3923_20081111b.patch 2008-11-11 06:36 PM Tsz Wo (Nicholas), SZE 28 kB

Hadoop Flags: Reviewed, Incompatible change
Release Note: Moved class org.apache.hadoop.mapred.StatusHttpServer to org.apache.hadoop.http.HttpServer.
Resolution Date: 11/Nov/08 11:45 PM


 Description  « Hide
StatusHttpServer is extending org.apache.hadoop.http.HttpServer. The only additional feature in StatusHttpServer is TaskGraphServlet. StatusHttpServer is used by TaskTracker and JobTracker. It turns that only JobTracker uses TaskGraphServlet but not TaskTracker.

So, we should deprecate StatusHttpServer, let TaskTracker and JobTracker use HttpServer directly, and add TaskGraphServlet to JobTracker.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 05:08 PM
3923_20081111.patch: talked to Owen, this class is better removed directly.

Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 06:33 PM
3923_20081111b.patch: Fixed a findbugs warning existing in the old codes.

Lohit Vijayarenu added a comment - 11/Nov/08 08:39 PM
Would it be better to have StatusHttpServer change to JobTrackerStatusHttpServer and TaskTracker use HttpServer for now. In that way added new servlets specific to JobTracker would be easy addition to JobTrackerStatusHttpServer.

Hadoop QA added a comment - 11/Nov/08 09:51 PM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12393719/3923_20081111b.patch
against trunk revision 713106.

+1 @author. The patch does not contain any @author tags.

-1 tests included. The patch doesn't appear to include any new or modified tests.
Please justify why no tests are needed for this patch.

+1 javadoc. The javadoc tool did not generate any warning messages.

-1 javac. The applied patch generated 220 javac compiler warnings (more than the trunk's current 1011 warnings).

+1 findbugs. The patch does not introduce any new Findbugs warnings.

+1 Eclipse classpath. The patch retains Eclipse classpath integrity.

+1 core tests. The patch passed core unit tests.

+1 contrib tests. The patch passed contrib unit tests.

Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3577/testReport/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3577/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3577/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3577/console

This message is automatically generated.


Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 10:47 PM
Hi Lohit, are you saying that we should keep TaskGraphServlet in JobTrackerStatusHttpServer? Without TaskGraphServlet, JobTrackerStatusHttpServer is quite empty and may not deserve to have a class for that. If we keep TaskGraphServlet in JobTrackerStatusHttpServer and put future servlet classes as static classes in JobTrackerStatusHttpServer, it will make JobTrackerStatusHttpServer unnecessary messy. So it might be better to remove this not-so-useful class. No?

Lohit Vijayarenu added a comment - 11/Nov/08 11:00 PM
Ok, if more servlets are added we could think about it. You changes looks good. Thanks.

Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 11:24 PM
Thanks, Lohit.

BTW, I didn't introduce 220 javac compiler warnings, see HADOOP-4634. This is a code clean up. So no new tests added.


Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 11:29 PM
I checked the web page manually. Everything looks good.

Tsz Wo (Nicholas), SZE added a comment - 11/Nov/08 11:45 PM
I just committed this.

Hudson added a comment - 13/Nov/08 02:11 AM
Integrated in Hadoop-trunk #659 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/659/)
. Remove org.apache.hadoop.mapred.StatusHttpServer. (szetszwo)

Robert Chansler added a comment - 03/Mar/09 06:14 PM
Edit release note for publication.