Start and stop the NFS Gateway services
You must start the following daemons to run the NFS services on the Gateway:
nfsd. The NFS Gateway process includes both
mountd. Although NFS Gateway works with
with most Linux distributions, you must use the
portmap included in the NFS
Gateway package on some Linux systems such as SLES 11 and RHEL 6.2.
nfs/rpcbind/portmapservices provided by the platform.
service nfs stop
service rpcbind stop
Start the included
portmappackage using one of the following commands:
hadoop-daemon.sh start portmap.NoteYou must have root privileges to run these commands.
nfsdusing one of the following commands:
hadoop-daemon.sh start nfs3.No root privileges are required for this command. However, verify that the user starting the Hadoop cluster and the user starting the NFS Gateway are the same.Note
hdfs nfs3starts the services as a foreground process while
hadoop-daemon.sh start nfs3starts the services as a background process.NoteIf the hadoop-daemon.sh script starts the NFS Gateway, its log file can be found in the hadoop log folder (
For example, if you launched the NFS Gateway services as the root user, the log file would be found in a path similar to the following:
Stop the NFS Gateway services.
hadoop-daemon.sh stop nfs3
hadoop-daemon.sh stop portmap