AMBARI-2783: FE work to Support securing YARN and MRv2 in Ambari security wizard. (jaimin)
Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/14ff542d Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/14ff542d Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/14ff542d Branch: refs/heads/trunk Commit: 14ff542d1b48223246e8c0bf79dfed6d8f2efc52 Parents: 75eda7a Author: Jaimin Jetly <[email protected]> Authored: Wed Jul 31 10:46:04 2013 -0700 Committer: Jaimin Jetly <[email protected]> Committed: Wed Jul 31 10:46:04 2013 -0700 ---------------------------------------------------------------------- .../services/YARN/configuration/yarn-site.xml | 17 + ambari-web/app/app.js | 3 + .../assets/data/dashboard/HDP2/services.json | 2269 ++++++++++++++++++ ambari-web/app/config.js | 1 + .../controllers/global/cluster_controller.js | 4 +- .../app/controllers/global/update_controller.js | 5 +- .../app/controllers/main/admin/security.js | 5 + .../security/add/addSecurity_controller.js | 8 +- .../main/admin/security/add/step2.js | 16 + .../main/admin/security/add/step3.js | 7 +- .../main/admin/security/add/step4.js | 16 +- .../controllers/main/admin/security/disable.js | 21 +- ambari-web/app/data/HDP2/config_mapping.js | 7 + ambari-web/app/data/HDP2/config_properties.js | 12 + ambari-web/app/data/HDP2/secure_configs.js | 130 + ambari-web/app/data/HDP2/secure_mapping.js | 494 ++++ ambari-web/app/data/HDP2/secure_properties.js | 800 ++++++ ambari-web/app/data/secure_configs.js | 4 +- ambari-web/app/data/secure_mapping.js | 4 +- ambari-web/app/models/service_config.js | 7 + .../app/views/common/configs/services_config.js | 19 +- 21 files changed, 3833 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/14ff542d/ambari-server/src/main/resources/stacks/HDP/2.0.3/services/YARN/configuration/yarn-site.xml ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.3/services/YARN/configuration/yarn-site.xml b/ambari-server/src/main/resources/stacks/HDP/2.0.3/services/YARN/configuration/yarn-site.xml index 05bed32..630c95e 100644 --- a/ambari-server/src/main/resources/stacks/HDP/2.0.3/services/YARN/configuration/yarn-site.xml +++ b/ambari-server/src/main/resources/stacks/HDP/2.0.3/services/YARN/configuration/yarn-site.xml @@ -116,6 +116,23 @@ </property> <property> + <name>yarn.nodemanager.local-dirs</name> + <value></value> + </property> + + <property> + <name>yarn.nodemanager.linux-container-executor.group</name> + <value>hadoop</value> + <description>Unix group of the NodeManager</description> + </property> + + <property> + <name>yarn.nodemanager.container-executor.class</name> + <value>org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor</value> + <description>Executor(launcher) of the containers</description> + </property> + + <property> <name>yarn.nodemanager.container-monitor.interval-ms</name> <value>3000</value> <description>The interval, in milliseconds, for which the node manager http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/14ff542d/ambari-web/app/app.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/app.js b/ambari-web/app/app.js index 53c2aa0..9df755a 100644 --- a/ambari-web/app/app.js +++ b/ambari-web/app/app.js @@ -58,6 +58,9 @@ module.exports = Em.Application.create({ return this.get('currentStackVersion').replace(/HDP(Local)?-/, ''); }.property('currentStackVersion'), isHadoop2Stack: function(){ + if(App.testHadoop2Stack && !App.alwaysGoToInstaller) { + return true; + } return (stringUtils.compareVersions(this.get('currentStackVersionNumber'), "2.0") === 1 || stringUtils.compareVersions(this.get('currentStackVersionNumber'), "2.0") === 0) }.property('currentStackVersionNumber')
