소스 검색

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

Lisnichenko Dmitro 9 년 전
부모
커밋
c68056205e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ambari-server/src/main/resources/stacks/HDP/2.0.6/services/stack_advisor.py

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