Bläddra i källkod

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

Srimanth Gunturi 10 år sedan
förälder
incheckning
2ca4a9b43c

+ 2 - 2
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)