Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B238110E2 for ; Mon, 22 Sep 2014 20:54:35 +0000 (UTC) Received: (qmail 56985 invoked by uid 500); 22 Sep 2014 20:54:34 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 56906 invoked by uid 500); 22 Sep 2014 20:54:34 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 56894 invoked by uid 99); 22 Sep 2014 20:54:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Sep 2014 20:54:34 +0000 Date: Mon, 22 Sep 2014 20:54:34 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MAPREDUCE-6096) SummarizedJob class NPEs with some jhist files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-6096?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Allen Wittenauer updated MAPREDUCE-6096: ---------------------------------------- Summary: SummarizedJob class NPEs with some jhist files (was: Summariz= edJob class should be Improvment ) > SummarizedJob class NPEs with some jhist files > ---------------------------------------------- > > Key: MAPREDUCE-6096 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-6096 > Project: Hadoop Map/Reduce > Issue Type: Improvement > Components: jobhistoryserver > Affects Versions: trunk > Reporter: zhangyubiao > Assignee: zhangyubiao > Labels: easyfix, patch > Attachments: MAPREDUCE-6096.patch > > > When I Parse the JobHistory in the HistoryFile,I use the Hadoop System's= map-reduce-client-core project org.apache.hadoop.mapreduce.jobhistory.Job= HistoryParser class and HistoryViewer$SummarizedJob to Parse the JobHistor= yFile(Just Like job_1408862281971_489761-1410883171851_XXX.jhist) =20 > and it throw an Exception Just Like=20 > Exception in thread "pool-1-thread-1" java.lang.NullPointerException > =09at org.apache.hadoop.mapreduce.jobhistory.HistoryViewer$SummarizedJob.= (HistoryViewer.java:626) > =09at com.jd.hadoop.log.parse.ParseLogService.getJobDetail(ParseLogServic= e.java:70) > After I'm see the SummarizedJob class I find that attempt.getTaskStatus(= ) is NULL =EF=BC=8C So I change the order of=20 > attempt.getTaskStatus().equals (TaskStatus.State.FAILED.toString()) to= =20 > TaskStatus.State.FAILED.toString().equals(attempt.getTaskStatus())=20 > and it works well . > So I wonder If we can change all attempt.getTaskStatus() after TaskStat= us.State.XXX.toString() ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)