This is documentation for MapR Version 5.0. You can also refer to MapR documentation for the latest release.

Skip to end of metadata
Go to start of metadata

On each node, the file /opt/mapr/conf/exports lists the clusters and mount points available to mount with NFS.

Access control for hosts

Specify access control for hosts with a space-separated list of hosts, appending (rw) for read-write or (ro) for read-only access after each host. To specify a default access for all hosts not otherwise specified, add (rw) or (ro) after a space at the end of a line. The exports file follows the same semantics as a standard UNIX exports table. The following export options are supported:

Export optionDefinition
roProvides read-only access.
rwProvides read-write access.

Squashes root privileges for remote users.

For example, you can use:

/mapr (rw,root_squash)

This entry prevents the /mapr directory from being written to by the root user on remote hosts.

no_root_squashTurns off root squashing for remote users.
all_squashSquashes every remote user, including root.
anonuid, anongidSpecifies user and group IDs to use with remote users from a particular host. 

Restricting clusters to specific hosts

To restrict access to a specific export path to particular hosts, use the following format:

For example, the line /mapr/cluster1 host01(rw) host02(ro) restricts read-write access to the cluster in /mapr/cluster1 to host host01, and restricts read-only access to host host02. No other hosts have access.


After making changes to this file, you do not have to restart the NFS server. You can run a maprcli command to refresh the exports definition without a restart. See nfsmgmt refresh exports.

Enabling Central Configuration

To enable Central Configuration for exports, specify a value for the AutoRefreshExportsTimeInterval parameter in the /opt/mapr/conf/nfsserver.conf file. The value of the AutoRefreshExportsTimeInterval parameter determines the number of minutes after which the NFS server refreshes the exports file. The default value of 0 disables central configuration for NFS exports.

Sample exports file

  • No labels