Repository: bigtop
Updated Branches:
  refs/heads/master 0ee641d71 -> cd55c1449


add rpc/http/https ports to template for non-HA mode

Signed-off-by: Kevin W Monroe <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/cd55c144
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/cd55c144
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/cd55c144

Branch: refs/heads/master
Commit: cd55c144955e36188640c199b3100fefb3b28612
Parents: 0ee641d
Author: Kevin W Monroe <[email protected]>
Authored: Mon Oct 17 17:38:08 2016 +0000
Committer: Kevin W Monroe <[email protected]>
Committed: Wed Oct 19 17:04:59 2016 -0500

----------------------------------------------------------------------
 .../modules/hadoop/templates/hdfs-site.xml      | 21 +++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/cd55c144/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
----------------------------------------------------------------------
diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml 
b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
index 9f3b3a5..626537f 100644
--- a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
+++ b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
@@ -86,7 +86,25 @@
   </property>
 
 <%   end -%>
-<% elsif @hadoop_security_authentication == "kerberos" -%>
+<% else -%>
+  <!-- non HA -->
+
+  <property>
+    <name>dfs.namenode.rpc-address</name>
+    <value><%= namenode_hosts[0] %>:<%= @hadoop_namenode_port %></value>
+  </property>
+
+  <property>
+    <name>dfs.namenode.http-address</name>
+    <value><%= namenode_hosts[0] %>:<%= @hadoop_namenode_http_port %></value>
+  </property>
+
+  <property>
+    <name>dfs.namenode.https-address</name>
+    <value><%= namenode_hosts[0] %>:<%= @hadoop_namenode_https_port %></value>
+  </property>
+
+<%   if @hadoop_security_authentication == "kerberos" -%>
   <property>
     <name>dfs.block.access.token.enable</name>
     <value>true</value>
@@ -175,6 +193,7 @@
     <value>host/_HOST@<%= @kerberos_realm %></value>
   </property>
 
+<%   end -%>
 <% end -%>
   <property>
     <name>dfs.datanode.data.dir</name>

Reply via email to