BIGTOP-2458: Add option to disable IP hostname checking for DataNode registration
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
index 90c9505..430e341 100644
--- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
+++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp
@@ -228,6 +228,7 @@
$hadoop_http_authentication_signature_secret_file = "/etc/hadoop/conf/hadoop-http-authentication-signature-secret",
$hadoop_http_authentication_cookie_domain = regsubst($fqdn, "^[^\\.]+\\.", ""),
$generate_secrets = $hadoop::generate_secrets,
+ $namenode_datanode_registration_ip_hostname_check = true,
) inherits hadoop {
$sshfence_keydir = "$hadoop_ha_sshfence_user_home/.ssh"
diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
index 328cf6f..8216eb4 100644
--- a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
+++ b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
@@ -297,4 +297,10 @@
<% end -%>
<% end -%>
+
+ <property>
+ <name>dfs.namenode.datanode.registration.ip-hostname-check</name>
+ <value><%= @namenode_datanode_registration_ip_hostname_check %></value>
+ </property>
+
</configuration>