ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject [1/4] ambari git commit: AMBARI-10475. BE: Extend stack-advisor to recommend property_value_attributes for HBase - fixes (srimanth)
Date Tue, 14 Apr 2015 23:24:55 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 2e528164e -> 2ca4a9b43


AMBARI-10475. BE: Extend stack-advisor to recommend property_value_attributes for HBase -
fixes (srimanth)


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

Branch: refs/heads/trunk
Commit: 2ca4a9b43cc98fda609e438d9f4ebc1f9d2cb7dd
Parents: 61cd7e8
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Tue Apr 14 16:13:07 2015 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Tue Apr 14 16:13:16 2015 -0700

----------------------------------------------------------------------
 .../src/main/resources/stacks/HDP/2.2/services/stack_advisor.py  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2ca4a9b4/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
index da7ba08..bcb9404 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
+++ b/ambari-server/src/main/resources/stacks/HDP/2.2/services/stack_advisor.py
@@ -125,12 +125,12 @@ class HDP22StackAdvisor(HDP21StackAdvisor):
 
   def recommendHBASEConfigurations(self, configurations, clusterData, services, hosts):
     super(HDP22StackAdvisor, self).recommendHbaseEnvConfigurations(configurations, clusterData,
services, hosts)
-    putHbaseEnvPropertyAttributes = self.putPropertyAttribute(configurations, "hbase-env",
services)
+    putHbaseEnvPropertyAttributes = self.putPropertyAttribute(configurations, "hbase-env")
 
     rs_hosts = self.getHostsWithComponent("HBASE", "HBASE_REGIONSERVER", services, hosts)
     if rs_hosts is not None and len(rs_hosts) > 0:
       min_ram = rs_hosts[0]["Hosts"]["total_mem"]
-      for host in rs_hosts["items"]:
+      for host in rs_hosts:
         host_ram = host["Hosts"]["total_mem"]
         min_ram = min(min_ram, host_ram)
 


Mime
View raw message