diff options
author | Alastair McKinley <a.mckinley@analyticsengines.com> | 2015-07-20 15:34:23 +0100 |
---|---|---|
committer | jayunit100 <jay@apache.org> | 2015-07-20 20:37:59 -0400 |
commit | 4db34eafcd476772a3f644a9bbfaa835abad6f4a (patch) | |
tree | a617011fc5e22c6d0beb0ed58eae1b1a0eefc485 /bigtop-deploy/puppet | |
parent | a440965ef402091bfbaee11efdcfcf56fa036d3f (diff) |
BIGTOP-1939. Enable basic configuration of hdfs-nfs gateway in core-site.xml
Diffstat (limited to 'bigtop-deploy/puppet')
-rw-r--r-- | bigtop-deploy/puppet/modules/hadoop/manifests/init.pp | 4 | ||||
-rw-r--r-- | bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp b/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp index 749773d8..57c739ca 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", diff --git a/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml b/bigtop-deploy/puppet/modules/hadoop/templates/core-site.xml index f9763626..1ca75f4f 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> |