diff options
author | Cory Johns <johnsca@gmail.com> | 2016-05-26 15:47:33 -0400 |
---|---|---|
committer | Kevin W Monroe <kevin.monroe@canonical.com> | 2016-10-04 11:13:54 -0500 |
commit | f9c0fcf200ff231f89780bcd4bf10f18360530e0 (patch) | |
tree | d2f9227f98d3c9fc0607e228cb4c58d526e42dce /bigtop-deploy/puppet | |
parent | fa2a88b6f1da98dc2a8bc3f8e7978ebf44fc7acd (diff) |
BIGTOP-2459: Add option to disable vmem check for NodeManager
Signed-off-by: Kevin W Monroe <kevin.monroe@canonical.com>
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r-- | bigtop-deploy/puppet/modules/hadoop/manifests/init.pp | 1 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/hadoop/templates/yarn-site.xml | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp index 69e26bb6..8e0de03c 100644 --- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp @@ -151,6 +151,7 @@ class hadoop ($hadoop_security_authentication = "simple", $container_executor_min_user_id = "499", $hadoop_security_authentication = $hadoop::hadoop_security_authentication, $kerberos_realm = $hadoop::kerberos_realm, + $yarn_nodemanager_vmem_check_enabled = undef, ) inherits hadoop { include hadoop::common diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/yarn-site.xml b/bigtop-deploy/puppet/modules/hadoop/templates/yarn-site.xml index 054ae653..0b1285ef 100644 --- a/bigtop-deploy/puppet/modules/hadoop/templates/yarn-site.xml +++ b/bigtop-deploy/puppet/modules/hadoop/templates/yarn-site.xml @@ -174,6 +174,13 @@ <value>/var/log/hadoop-yarn/apps</value> </property> +<% if not @yarn_nodemanager_vmem_check_enabled.nil? -%> + <property> + <name>yarn.nodemanager.vmem-check-enabled</name> + <value><%= @yarn_nodemanager_vmem_check_enabled %></value> + </property> +<% end -%> + <property> <description>Classpath for typical applications.</description> <name>yarn.application.classpath</name> |