ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-9838. Ambari Metrics broken for Slider deployed apps - application id was made mandatory. (swagle)
Date Fri, 27 Feb 2015 21:30:41 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 5ea6b198b -> abd6efd70


AMBARI-9838. Ambari Metrics broken for Slider deployed apps - application id was made mandatory.
(swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/abd6efd7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/abd6efd7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/abd6efd7

Branch: refs/heads/branch-2.0.0
Commit: abd6efd70dde2a354924d7651209fe4d1553d4cc
Parents: 5ea6b19
Author: Siddharth Wagle <swagle@hortonworks.com>
Authored: Fri Feb 27 13:07:54 2015 -0800
Committer: Siddharth Wagle <swagle@hortonworks.com>
Committed: Fri Feb 27 13:30:24 2015 -0800

----------------------------------------------------------------------
 .../metrics/timeline/HBaseTimelineMetricStore.java            | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/abd6efd7/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
----------------------------------------------------------------------
diff --git a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
index 3969fa9..a4980b4 100644
--- a/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
+++ b/ambari-metrics/ambari-metrics-timelineservice/src/main/java/org/apache/hadoop/yarn/server/applicationhistoryservice/metrics/timeline/HBaseTimelineMetricStore.java
@@ -109,13 +109,9 @@ public class HBaseTimelineMetricStore extends AbstractService
       Long startTime, Long endTime, Precision precision, Integer limit,
       boolean groupedByHosts) throws SQLException, IOException {
 
-
     if (metricNames == null || metricNames.isEmpty()) {
       throw new IllegalArgumentException("No metric name filter specified.");
     }
-    if (applicationId == null || applicationId.trim().length() == 0) {
-      throw new IllegalArgumentException("No applicationID filter specified.");
-    }
     if ((startTime == null && endTime != null)
         || (startTime != null && endTime == null)) {
       throw new IllegalArgumentException("Open ended query not supported ");
@@ -222,9 +218,6 @@ public class HBaseTimelineMetricStore extends AbstractService
     if (metricName == null || metricName.isEmpty()) {
       throw new IllegalArgumentException("No metric name filter specified.");
     }
-    if (applicationId == null || applicationId.trim().length() == 0) {
-      throw new IllegalArgumentException("No applicationID filter specified.");
-    }
     if ((startTime == null && endTime != null)
         || (startTime != null && endTime == null)) {
       throw new IllegalArgumentException("Open ended query not supported ");


Mime
View raw message