BIGTOP-552. Enable HDFS durable sync (Michael Morello via ptr)
git-svn-id: https://svn.apache.org/repos/asf/incubator/bigtop/branches/hadoop-0.23@1328546 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bigtop-deploy/puppet/modules/hadoop-hbase/templates/hbase-site.xml b/bigtop-deploy/puppet/modules/hadoop-hbase/templates/hbase-site.xml
index faf8423..e4bedb8 100644
--- a/bigtop-deploy/puppet/modules/hadoop-hbase/templates/hbase-site.xml
+++ b/bigtop-deploy/puppet/modules/hadoop-hbase/templates/hbase-site.xml
@@ -37,6 +37,18 @@
<value><%= rootdir %></value>
</property>
+ <property>
+ <name>dfs.support.append</name>
+ <value>true</value>
+ </property>
+
+<% if has_variable?("hdfs_shortcut_reader_user") %>
+ <property>
+ <name>dfs.client.read.shortcircuit</name>
+ <value>true</value>
+ </property>
+<% end %>
+
<% if kerberos_realm != "" %>
<property>
<name>hbase.regionserver.kerberos.principal</name>
diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
index 9f75404..402198b 100644
--- a/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
+++ b/bigtop-deploy/puppet/modules/hadoop/templates/hdfs-site.xml
@@ -168,6 +168,25 @@
<name>dfs.data.dir</name>
<value><%= hdfs_data_dirs.join(",") %></value>
</property>
+
+<% if has_variable?("hdfs_support_append") %>
+ <property>
+ <name>dfs.support.append</name>
+ <value><%= hdfs_support_append %></value>
+ </property>
+<% end %>
+
+<% if has_variable?("hdfs_shortcut_reader_user") %>
+ <property>
+ <name>dfs.client.read.shortcircuit</name>
+ <value>true</value>
+ </property>
+
+ <property>
+ <name>dfs.block.local-path-access.user</name>
+ <value><%= hdfs_shortcut_reader_user %></value>
+ </property>
+<% end %>
<property>
<name>dfs.name.dir</name>