Преглед изворни кода

AMBARI-11191. Ambari yarn proxy user configs are not correct. (alexantonenko)

Alex Antonenko пре 10 година
родитељ
комит
88294bb09f

+ 7 - 1
ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/kerberos.json

@@ -36,6 +36,12 @@
             "yarn.resourcemanager.proxy-user-privileges.enabled": "true",
             "yarn.resourcemanager.proxy-user-privileges.enabled": "true",
             "yarn.nodemanager.linux-container-executor.cgroups.mount-path": ""
             "yarn.nodemanager.linux-container-executor.cgroups.mount-path": ""
           }
           }
+        },
+        {
+          "core-site": {
+            "hadoop.proxyuser.yarn.groups": "*",
+            "hadoop.proxyuser.yarn.hosts": "${yarn-site/yarn.resourcemanager.hostname}"
+          }
         }
         }
       ],
       ],
       "components": [
       "components": [
@@ -205,4 +211,4 @@
       ]
       ]
     }
     }
   ]
   ]
-}
+}

+ 7 - 1
ambari-server/src/main/resources/stacks/HDP/2.2/services/YARN/kerberos.json

@@ -36,6 +36,12 @@
             "yarn.resourcemanager.proxy-user-privileges.enabled": "true",
             "yarn.resourcemanager.proxy-user-privileges.enabled": "true",
             "yarn.nodemanager.linux-container-executor.cgroups.mount-path": ""
             "yarn.nodemanager.linux-container-executor.cgroups.mount-path": ""
           }
           }
+        },
+        {
+          "core-site": {
+            "hadoop.proxyuser.yarn.groups": "*",
+            "hadoop.proxyuser.yarn.hosts": "${yarn-site/yarn.resourcemanager.hostname}"
+          }
         }
         }
       ],
       ],
       "components": [
       "components": [
@@ -205,4 +211,4 @@
       ]
       ]
     }
     }
   ]
   ]
-}
+}