国电电力HDFS NFS Gateway安装部署
(CDH5部署)
目录
一、环境部署    3
1、下载rpcbind、nfs-utils相关依赖    3
2、停止相关进程    3
3、启动hadoop自带的portmap    3
4、加入到开机自启    3
二、应用部署    3
1、添加NFS Gateway实例    4
2、启动NFS Gateway实例    4
三、应用验证    4
1、执行以下命令验证是否服务已经开启    4
2、查看机器可被挂载的nfs目录    5
3、挂载NFS    5
四、window挂载NFS    5
一、环境部署
1、下载rpcbind、nfs-utils相关依赖
yum install -y nfs-utils rpcbind
2、停止相关进程
systemctl stop rpcbind.socket
systemctl stop rpcbind
systemctl stop nfs
3、启动hadoop自带的portmap
nohup hadoop portmap 2>&1 >> /var/log/hadoop-nfs/portmap_running.log &
4、加入到开机自启
if [ ! -d /var/log/hadoop-nfs/ ];then
        (mkdir /var/log/hadoop-nfs/)
else
        (nohup hadoop portmap 2>&1 >> /var/log/hadoop-nfs/portmap_running.log &)
fi
二、应用部署
1、添加NFS Gateway实例
2、启动NFS Gateway实例
三、应用验证
1、执行以下命令验证是否服务已经开启
2、查看机器可被挂载的nfs目录
3、挂载NFS
mount -t nfs -o vers=3,proto=tcp,nolock ip:/  $mount_point
mount -t nfs -o vers=3,proto=tcp,nolock 10.168.1.28:/test_nfs/ /mnt/
参考文档:https://blog.csdn.net/rzliuwei/article/details/38388279
四、window挂载NFS
1、目标端安装CDH NFS Gateway,如上。
2、Window本地启用NFS
3、然后执行:net use X: \10.65.80.17!
 
 
 
 
 
                         
                                

