Ver Fonte

AMBARI-13763. ranger.audit.solr.zookeepers value should be suffixed with /ranger_audits. (Gautam via Jaimin)

Jaimin Jetly há 9 anos atrás
pai
commit
3831adab9f

+ 1 - 1
ambari-server/src/main/resources/common-services/RANGER/0.4.0/alerts.json

@@ -34,7 +34,7 @@
         "name": "ranger_admin_password_check",
         "label": "Ranger Admin password check",
         "description": "This alert is used to ensure that the Ranger Admin password in Ambari is correct.",
-        "interval": 1,
+        "interval": 30,
         "scope": "ANY",
         "source": {
           "type": "SCRIPT",

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.3/services/RANGER/alerts.json

@@ -34,7 +34,7 @@
         "name": "ranger_admin_password_check",
         "label": "Ranger Admin password check",
         "description": "This alert is used to ensure that the Ranger Admin password in Ambari is correct.",
-        "interval": 1,
+        "interval": 30,
         "scope": "ANY",
         "source": {
           "type": "SCRIPT",

+ 2 - 5
ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py

@@ -496,12 +496,9 @@ class HDP23StackAdvisor(HDP22StackAdvisor):
 
     if isSolrCloudEnabled:
       zookeeper_host_port = self.getZKHostPortString(services)
+      ranger_audit_zk_port = ''
       if zookeeper_host_port:
-        ranger_audit_zk_port = []
-        zk_hosts = zookeeper_host_port.split(',')
-        for zk_host in zk_hosts:
-          ranger_audit_zk_port.append('{0}/{1}'.format(zk_host,'ranger_audits'))
-        ranger_audit_zk_port = ','.join(ranger_audit_zk_port)
+        ranger_audit_zk_port = '{0}/{1}'.format(zookeeper_host_port, 'ranger_audits')
         putRangerAdminProperty('ranger.audit.solr.zookeepers', ranger_audit_zk_port)
     else:
       putRangerAdminProperty('ranger.audit.solr.zookeepers', 'NONE')