Repository: ambari Updated Branches: refs/heads/trunk 0e8715179 -> de09ef87c
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/de09ef87 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/de09ef87 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/de09ef87 Branch: refs/heads/trunk Commit: de09ef87cbaae7d8684f9d8931ed09111d6c0ec2 Parents: 0e87151 Author: Pallav Kulshreshtha <[email protected]> Authored: Thu Apr 7 18:52:52 2016 +0530 Committer: Pallav Kulshreshtha <[email protected]> Committed: Thu Apr 7 18:55:12 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/de09ef87/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);
