Repository: ambari Updated Branches: refs/heads/branch-2.2 86a2305c0 -> 9029212a7
AMBARI-15727. "E090 NullPointerException" when executing Hive queries with tez (Gaurav Nagar via pallavkul) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9029212a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9029212a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9029212a Branch: refs/heads/branch-2.2 Commit: 9029212a7d15006b9b171a69fb20796e7253b77e Parents: 86a2305 Author: Pallav Kulshreshtha <[email protected]> Authored: Thu Apr 7 18:52:52 2016 +0530 Committer: Pallav Kulshreshtha <[email protected]> Committed: Thu Apr 7 18:52:52 2016 +0530 ---------------------------------------------------------------------- .../org/apache/ambari/view/hive/resources/jobs/Aggregator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/9029212a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/Aggregator.java ---------------------------------------------------------------------- diff --git a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/Aggregator.java b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/Aggregator.java index 4eb1568..e646fd7 100644 --- a/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/Aggregator.java +++ b/contrib/views/hive/src/main/java/org/apache/ambari/view/hive/resources/jobs/Aggregator.java @@ -177,7 +177,7 @@ public class Aggregator { viewJobResourceManager.update(viewJob, viewJob.getId()); } } - if ((tezDagId.status.compareToIgnoreCase(Job.JOB_STATE_UNKNOWN) != 0) && + if (tezDagId.status != null && (tezDagId.status.compareToIgnoreCase(Job.JOB_STATE_UNKNOWN) != 0) && !viewJob.getStatus().equals(tezDagId.status)) { viewJob.setDagId(tezDagId.entity); viewJob.setStatus(tezDagId.status);
