Adding and Configuring an NFS Gateway
The NFS Gateway role implements an NFSv3 gateway. It is an optional role for a CDH 5 HDFS service.
The NFSv3 gateway allows a client to mount HDFS as part of the client's local file system. The gateway machine can be any host in the cluster, including the NameNode, a DataNode, or any HDFS client. The client can be any NFSv3-client-compatible machine.
After mounting HDFS to his or her local filesystem, a user can:
- Browse the HDFS file system through the local file system
- Upload and download files from the HDFS file system to and from the local file system.
- Stream data directly to HDFS through the mount point.
Requirements and Limitations
- The NFS gateway works only with the following operating
systems and Cloudera Manager and CDH versions:
- With Cloudera Manager 5.0.1 or later and CDH 5.0.1 or later, the NFS gateway works on all operating systems supported by Cloudera Manager.
- With Cloudera Manager 5.0.0 or CDH 5.0.0, the NFS gateway only works on RHEL and similar systems.
- The NFS gateway is not supported on versions earlier than Cloudera Manager 5.0.0 and CDH 5.0.0.
- If any NFS server is already running on the NFS Gateway host, it must be stopped before the NFS Gateway role is started.
- There are two configuration options related to NFS Gateway role: Temporary Dump Directory and Allowed Hosts and Privileges. The Temporary Dump Directory is automatically created by the NFS Gateway role and should be configured before starting the role.
- The Access Time Precision property in the HDFS service must be enabled.
Adding and Configuring the NFS Gateway Role
- Go to the HDFS service.
- Click the Instances tab.
- Click Add Role Instances.
- Click the text box below the NFS Gateway field. The Select Hosts dialog displays.
- Select the host on which to run the role and click OK.
- Click Continue.
- Click the NFS Gateway role.
- Click the Configuration tab.
- Ensure that the requirements on the directory set in the Temporary Dump Directory property are met.
- Optionally edit Allowed Hosts and Privileges.
- Click the Instances tab.
- Check the checkbox next to the NFS Gateway role and select .
<< Enabling WebHDFS | The Hive Service >> | |