ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject ambari git commit: AMBARI-9202 AMS: disk space warning is confusing (dsen)
Date Mon, 19 Jan 2015 18:30:35 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 88094f6ba -> d3b139b5d


AMBARI-9202 AMS: disk space warning is confusing (dsen)


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

Branch: refs/heads/trunk
Commit: d3b139b5d121abdddd3f8b9a5886e11f498dcf16
Parents: 88094f6
Author: Dmytro Sen <dsen@apache.org>
Authored: Mon Jan 19 20:24:18 2015 +0200
Committer: Dmytro Sen <dsen@apache.org>
Committed: Mon Jan 19 20:30:31 2015 +0200

----------------------------------------------------------------------
 .../main/resources/stacks/HDP/2.0.6/services/stack_advisor.py    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d3b139b5/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
index d409638..1c1e690 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py
@@ -264,7 +264,9 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
     mountPoint = getMountPointForDir(dir, mountPoints.keys())
 
     if mountPoints[mountPoint] < reqiuredDiskSpace:
-      return self.getWarnItem("Recommended disk space for partition {0} is {1}k".format(mountPoint,
reqiuredDiskSpace))
+      msg = "Ambari Metrics disk space requirements not met. \n" \
+            "Recommended disk space for partition {0} is {1}G"
+      return self.getWarnItem(msg.format(mountPoint, reqiuredDiskSpace/1048576)) # in Gb
     return None
 
   def validatorLessThenDefaultValue(self, properties, recommendedDefaults, propertyName):


Mime
View raw message