Repository: bigtop Updated Branches: refs/heads/master a440965ef -> 4db34eafc
BIGTOP-1939. Enable basic configuration of hdfs-nfs gateway in core-site.xml Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/4db34eaf Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/4db34eaf Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/4db34eaf Branch: refs/heads/master Commit: 4db34eafcd476772a3f644a9bbfaa835abad6f4a Parents: a440965 Author: Alastair McKinley <[email protected]> Authored: Mon Jul 20 15:34:23 2015 +0100 Committer: jayunit100 <[email protected]> Committed: Mon Jul 20 20:37:59 2015 -0400 ---------------------------------------------------------------------- .../puppet/modules/hadoop/manifests/init.pp | 4 ++++ .../modules/hadoop/templates/core-site.xml | 22 ++++++++++++++++++++ 2 files changed, 26 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/4db34eaf/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp index 749773d..57c739c 100644 --- a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp @@ -137,6 +137,10 @@ class hadoop ($hadoop_security_authentication = "simple", $hdfs_webhdfs_enabled = "true", $hdfs_replication = undef, $hdfs_datanode_fsdataset_volume_choosing_policy = undef, + $hdfs_nfs_bridge = "disabled", + $hdfs_nfs_bridge_user = undef, + $hdfs_nfs_gw_host = undef, + $hdfs_nfs_proxy_groups = undef, $namenode_data_dirs = suffix($hadoop::hadoop_storage_dirs, "/namenode"), $nameservice_id = "ha-nn-uri", $journalnode_host = "0.0.0.0", http://git-wip-us.apache.org/repos/asf/bigtop/blob/4db34eaf/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml b/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml index f976362..1ca75f4 100644 --- a/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml +++ b/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml @@ -29,6 +29,28 @@ <% end -%> </property> +<% if @hdfs_nfs_bridge == "enabled" -%> +<property> + <name>hadoop.proxyuser.<%= @hdfs_nfs_bridge_user %>.groups</name> + <value><%= @hdfs_nfs_proxy_groups %></value> + <description> + The '<%= @hdfs_nfs_bridge_user %>' user is allowed to proxy all members of the groups. Note that in most cases you will need to include the + group "root" because the user "root" (which usually belonges to "root" group) will + generally be the user that initially executes the mount on the NFS client system. + Set this to '*' to allow nfsserver user to proxy any group. + </description> +</property> + +<property> + <name>hadoop.proxyuser.<%= @hdfs_nfs_bridge_user %>.hosts</name> + <value><%= @hdfs_nfs_gw_host %></value> + <description> + This is the host where the nfs gateway is running. Set this to '*' to allow + requests from any hosts to be proxied. + </description> +</property> +<% end -%> + <% if @ha == "auto" and @zk -%> <property> <name>ha.zookeeper.quorum</name>
