Scaling Namespaces and Optimizing Data Storage
Also available as:
PDF
loading table of contents...

Start and stop the NFS Gateway services

You must start the following daemons to run the NFS services on the Gateway: rpcbind (or portmap), mountd, and nfsd. The NFS Gateway process includes both nfsd and mountd. Although NFS Gateway works with portmap included 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.

  1. Stop the nfs/rpcbind/portmap services provided by the platform.
    service nfs stop

    service rpcbind stop

  2. Start the included portmap package using one of the following commands: hadoop portmap or hadoop-daemon.sh start portmap.
    Note
    Note
    You must have root privileges to run these commands.
  3. Start mountd and nfsd using one of the following commands: hdfs nfs3 or hadoop-daemon.sh start nfs3.
    Note
    Note
    hdfs nfs3 starts the services as a foreground process while hadoop-daemon.sh start nfs3 starts the services as a background process.
    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
    Note
    If the hadoop-daemon.sh script starts the NFS Gateway, its log file can be found in the hadoop log folder (/var/log/hadoop).

    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:

    /var/log/hadoop/root/hadoop-root-nfs3-63ambarihdp21.log

  4. Stop the NFS Gateway services.
    hadoop-daemon.sh stop nfs3

    hadoop-daemon.sh stop portmap

Verify the validity of the NFS services