Browse Source

HADOOP-4121. Preserve cause for exception if the initialization of HistoryViewer for JobHistory fails. Contributed by Amareshwari Sri Ramadasu.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/trunk@696746 13f79535-47bb-0310-9956-ffa450edef68
Arun Murthy 16 years ago
parent
commit
2c05119fe0
2 changed files with 5 additions and 1 deletions
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/mapred/org/apache/hadoop/mapred/HistoryViewer.java

+ 4 - 0
CHANGES.txt

@@ -631,6 +631,10 @@ Trunk (unreleased changes)
     HADOOP-4084. Add explain plan capabilities to Hive Query Language.
     (Ashish Thusoo via dhruba)
 
+    HADOOP-4121. Preserve cause for exception if the initialization of
+    HistoryViewer for JobHistory fails. (Amareshwari Sri Ramadasu via
+    acmurthy) 
+
 Release 0.18.1 - 2008-09-17
 
   IMPROVEMENTS

+ 1 - 1
src/mapred/org/apache/hadoop/mapred/HistoryViewer.java

@@ -85,7 +85,7 @@ class HistoryViewer {
       job = new JobHistory.JobInfo(jobId); 
       DefaultJobHistoryParser.parseJobTasks(jobFiles[0].toString(), job, fs);
     } catch(Exception e) {
-      throw new IOException("Not able to initialize History viewer");
+      throw new IOException("Not able to initialize History viewer", e);
     }
   }