Kaynağa Gözat

AMBARI-18877. Ambari change hcat.proxy.hosts value during add service. Small fix (dlysnichenko)

Lisnichenko Dmitro 9 yıl önce
ebeveyn
işleme
c68056205e

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py

@@ -220,7 +220,7 @@ class HDP206StackAdvisor(DefaultStackAdvisor):
           ambariHostName = socket.getfqdn()
           is_wildcard_value, hosts = self.get_hosts_for_proxyuser(ambari_user, services)
           if not is_wildcard_value:
-            hosts.put(ambariHostName)
+            hosts.add(ambariHostName)
             putCoreSiteProperty("hadoop.proxyuser.{0}.hosts".format(ambari_user), ",".join(hosts))
           putCoreSiteProperty("hadoop.proxyuser.{0}.groups".format(ambari_user), "*")
           old_ambari_user = self.getOldAmbariUser(services)