You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ds...@apache.org on 2015/01/19 19:30:35 UTC

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

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 <ds...@apache.org>
Authored: Mon Jan 19 20:24:18 2015 +0200
Committer: Dmytro Sen <ds...@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):