Issue Details (XML | Word | Printable)

Key: HADOOP-4238
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Sreekanth Ramakrishnan
Reporter: Vinod K V
Votes: 0
Watchers: 3
Operations

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

[mapred] Unavailable schedulingInfo in "hadoop list [all]" output should be marked "N/A"

Created: 22/Sep/08 11:26 AM   Updated: 23/Apr/09 07:17 PM
Return to search
Component/s: None
Affects Version/s: 0.19.0
Fix Version/s: 0.20.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-4238-1.patch 2008-09-22 11:40 AM Sreekanth Ramakrishnan 0.5 kB
Text File Licensed for inclusion in ASF works HADOOP-4238-2.patch 2008-09-25 06:22 AM Sreekanth Ramakrishnan 1 kB

Hadoop Flags: Reviewed
Resolution Date: 20/Oct/08 09:57 AM


 Description  « Hide
When schedulingInfo is not available for a job, "hadoop list [all]" doesn't print anything. This, combined with the fact that the columns are not aligned properly, makes it difficult to comprehend the output.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Vinod K V added a comment - 22/Sep/08 11:27 AM
I meant "hadoop job -list [all]".

Sreekanth Ramakrishnan added a comment - 22/Sep/08 11:40 AM
Currently all the columns are tab separated. So the tab separation does not align the column in a proper manner because we are relying on the system tab width and width of the text which is being printed on to the console.

I am attaching the patch by initializing the schedulingInfo in the JobStatus to NA. So this should print schedulingInfo column of jobs which have none appear as "NA"


Vinod K V added a comment - 25/Sep/08 04:47 AM

initializing the schedulingInfo in the JobStatus to NA

In that case, we can remove the empty string checks for JobStatus.schedulingInfo (JspUtil.java +146).

Irrespective of this, the output will become a lot cleaner if we fix the column alignment issue. Will file a JIRA for that.


Sreekanth Ramakrishnan added a comment - 25/Sep/08 06:22 AM
Attaching patch removing the JspUtil check.

Sreekanth Ramakrishnan added a comment - 25/Sep/08 06:31 AM
Fixing the column with alignment can break the existing script which might dependent on the tab delimited values which are currently being generated by the script. Making any changes or making it fixed with table would mean rewriting parsing logic which scripts might currently use today. Plus this would mean that we would have to make assumptions on length of the scheduling information on a particular job or other attributes which are currently being displayed.

Vinod K V added a comment - 03/Oct/08 04:23 AM
+ for the patch. Running it through Hudson.

Vinod K V added a comment - 03/Oct/08 04:36 AM

the output will become a lot cleaner if we fix the column alignment issue. Will file a JIRA for that.

The output doesn't look too bad after this patch, fixing columns is less important now; it can wait for later.


Hadoop QA added a comment - 03/Oct/08 06:35 AM
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12390904/HADOOP-4238-2.patch
against trunk revision 701273.

+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 does not increase the total number of javac compiler 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 failed core unit tests.

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

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

This message is automatically generated.


Sreekanth Ramakrishnan added a comment - 03/Oct/08 06:41 AM
The core test failing are not related to this patch. The reason why this patch does not contain any test is because it is a trivial change to scheduling info string in Job status.

Hemanth Yamijala added a comment - 13/Oct/08 05:21 PM
This is a minor UI enhancement, and not a blocker for Hadoop 0.19, IMHO.

Johan Oskarsson added a comment - 20/Oct/08 09:57 AM
Just committed this. Thanks, Sreekanth!

Hudson added a comment - 23/Oct/08 09:56 PM